In the above code (and in the other replies in the thread),
[^\d]*
may be represented with
\D*
and will be more efficient as well, since it avoids calls to utf8::IsDigit internally.
• another intruder with the mooring in the heart of the Perl
In reply to Re^2: Matching numbers by regex. (remember \D)
by grinder
in thread Matching numbers by regex.
by Wasted
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |