say ('1_3' + 0); say ('0xd' + 0); say ('0b1101' + 0); say ('1.3e1' + 0);
Literals are irrelevant, the conversion from string to number is what counts, because that's what's more often than not what happens to the matched string, and only the last one actually works.
There's no reason whatsoever not to require \p{Number} for the rare use case of "give me anything that might be a digit to someone".
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^3: Why this is work?
by Jenda
in thread Why this is work?
by Csonytii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |