1 |
On Sunday 25 May 2008, »Q« wrote: |
2 |
> On Sat, 24 May 2008 17:57:45 +0200 |
3 |
> |
4 |
> Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
5 |
> > On Saturday 24 May 2008, Robin Atwood wrote: |
6 |
> > > But why does "[[:space:]]+" work and "\s+" fail? |
7 |
> > |
8 |
> > Apparently because \s is not a synonym for [[:space:]] |
9 |
> |
10 |
> As Robin's already pointed out, \s is part of Perl's regex syntax. If |
11 |
> you've compiled grep with the pcre useflag, you can use grep -P |
12 |
|
13 |
Thanks for that, \s is a lot easier to read than [[:space:]]! |
14 |
|
15 |
-Robin |
16 |
-- |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
-- |
30 |
gentoo-user@l.g.o mailing list |