Re: [gentoo-user] Re: Need help with a regex

2008-05-25 Thread Robin Atwood
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 a

[gentoo-user] Re: Need help with a regex

2008-05-24 Thread »Q«
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