http://www.perlmonks.org?node_id=1052756


in reply to Re: End of String in qr// expression
in thread End of String in qr// expression

if you really just want to match any string exactly 8 characters long, why not use length?

Note hat /^\S{8}$/ does not match ANY 8 characters, but only 8 non-whitespace characters. length($input)==8 accepts any 8 characters.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)