Keep It Simple, Stupid | |
PerlMonks |
Re^3: better (faster) way of writing regexpby JavaFan (Canon) |
on Dec 02, 2009 at 14:54 UTC ( [id://810577]=note: print w/replies, xml ) | Need Help?? |
No. \d matches any digits, that is, anything numerical that is used as numbers 0 .. 9, and not part of a set that includes more numerals. (There are scripts that have number symbols for 0 .. 9, but also for 100, 1000, etc. Their 1 .. 10 aren't matched by \d).
\pN will match any "numerical" character, which is more than \d (\d is the same as \p{Nd}).
In Section
Seekers of Perl Wisdom
|
|