On Sunday 25 May 2008, »Q« wrote:
> On Sat, 24 May 2008 17:57:45 +0200
>
> Alan McKinnon <[EMAIL PROTECTED]> wrote:
> > On Saturday 24 May 2008, Robin Atwood wrote:
> > > But why does "[[:space:]]+" work and "\s+" fail?
> >
> > Apparently because \s is not a synonym for [[:space:]]
>
> As Robin's already pointed out, \s is part of Perl's regex syntax.  If
> you've compiled grep with the pcre useflag, you can use grep -P

Thanks for that, \s is a lot easier to read than [[:space:]]!

-Robin
-- 












-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to