Ovid has asked for the wisdom of the Perl Monks concerning the following question:
According to perlre:
The following equivalences to Unicode \p{} constructs and equivalent backslash character classes (if available), will hold:
[snip]
digit IsDigit \d
However, according to Larry, they are not equivalent. Is the Perl documentation incorrect? What does this mean? Should constructs like \s also be coverted to [[:space:]] or am I totally misunderstanding this?
Cheers,
Ovid
New address of my CGI Course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POSIX character classes in regular expressions
by ikegami (Patriarch) on Jan 31, 2005 at 19:26 UTC | |
by Ovid (Cardinal) on Jan 31, 2005 at 19:40 UTC | |
|
Re: POSIX character classes in regular expressions
by ambrus (Abbot) on Jan 31, 2005 at 20:58 UTC |