Gentoo Archives: gentoo-user

From: Robin Atwood <robin.atwood@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Need help with a regex
Date: Sun, 25 May 2008 09:43:47
Message-Id: 200805251643.39222.robin.atwood@attglobal.net
In Reply to: [gentoo-user] Re: Need help with a regex by "»Q«"
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