On 2012-02-22 21:48, Igor Dovgiy wrote:

Anyway, if you're looking for integers only, as assumed previously, the
corresponding check should be made of this:
*match the beginning of the line marker, then, optionally, a minus sign,
then any number of digits, then the end of the line marker*, or just
/^-?\d+$/

Igor, you switched from [0-9] to \d.
Spoiler: the \d matches 250+ code points.
Why did you switch?

--
Ruud

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to