Also, [0-9] can be simplified with a single \d.
In the old ASCII times: yes.
Today: No.
Unicode has more digits than [0-9]. You can limit the regular expression to match in ASCII mode using the /a or /aa options, this is documented in perlop.
Alexander
In reply to Re^4: Recognizing numbers
by afoken
in thread Recognizing numbers
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |