in reply to •Homework alert! Re: validating string length with a regular expression
in thread validating string length with a regular expression
Take your pick. :-)#234567890#234567890#234567890 $_=$foo; $_&&length<=50&&/foo/; /(?=.{0,50}\z)foo/s;
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|