in reply to •Homework alert! Re: validating string length with a regular expression
in thread validating string length with a regular expression

It could just be a badly-worded golf.
#234567890#234567890#234567890 $_=$foo; $_&&length<=50&&/foo/; /(?=.{0,50}\z)foo/s;
Take your pick. :-)

------
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.

  • Comment on Re: •Homework alert! Re: validating string length with a regular expression
  • Download Code