From: | Alan McKinnon <alan.mckinnon@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Need help with a regex | ||
Date: | Sat, 24 May 2008 17:06:59 | ||
Message-Id: | 200805241905.38180.alan.mckinnon@gmail.com | ||
In Reply to: | Re: [gentoo-user] Need help with a regex by Robin Atwood |
1 | On Saturday 24 May 2008, Robin Atwood wrote: |
2 | > On Saturday 24 May 2008, Alan McKinnon wrote: |
3 | > > On Saturday 24 May 2008, Robin Atwood wrote: |
4 | > > > But why does "[[:space:]]+" work and "\s+" fail? |
5 | > > |
6 | > > Apparently because \s is not a synonym for [[:space:]] |
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-abbreviation |
13 | >s-for-sets-of-characters |
14 | > |
15 | > Is it a Perl thing? Probably! |
16 | > http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#DoingStr |
17 | >ingComparisons |
18 | |
19 | Ah yes, it's the old: |
20 | |
21 | grep/sed/awk/vi/perl-implement-regexes-identically-except-when-they-don't |
22 | thing again! |
23 | |
24 | |
25 | -- |
26 | Alan McKinnon |
27 | alan dot mckinnon at gmail dot com |
28 | |
29 | -- |
30 | gentoo-user@l.g.o mailing list |