On Saturday 24 May 2008, Robin Atwood wrote:
> On Saturday 24 May 2008, Alan McKinnon 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:]]
>
> Here for a start:
> http://www.regular-expressions.info/charclass.html#shorthand
>
> and also
> http://doc.trolltech.com/3.3/qregexp.html#characters-and-abbreviation
>s-for-sets-of-characters
>
> Is it a Perl thing? Probably!
> http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#DoingStr
>ingComparisons

Ah yes, it's the old:

grep/sed/awk/vi/perl-implement-regexes-identically-except-when-they-don't 
thing again!


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

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

Reply via email to