Gentoo Archives: gentoo-user

From: Robin Atwood <robin.atwood@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Need help with a regex
Date: Sat, 24 May 2008 16:51:14
Message-Id: 200805242350.12177.robin.atwood@attglobal.net
In Reply to: Re: [gentoo-user] Need help with a regex by Alan McKinnon
1 On Saturday 24 May 2008, Alan McKinnon wrote:
2 > On Saturday 24 May 2008, Robin Atwood wrote:
3 > > But why does "[[:space:]]+" work and "\s+" fail?
4 >
5 > Apparently because \s is not a synonym for [[:space:]]
6 >
7
8 Here for a start:
9 http://www.regular-expressions.info/charclass.html#shorthand
10
11 and also
12 http://doc.trolltech.com/3.3/qregexp.html#characters-and-abbreviations-for-sets-of-characters
13
14 Is it a Perl thing? Probably!
15 http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#DoingStringComparisons
16
17 -Robin
18 --
19
20
21
22
23
24
25
26
27
28
29
30 --
31 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Need help with a regex Alan McKinnon <alan.mckinnon@×××××.com>