in reply to Limit long words and numbers

Use a regular expression match. See perlretut.

True laziness is hard work