Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: End of String in qr// expression

by afoken (Prior)
on Sep 06, 2013 at 19:28 UTC ( #1052756=note: print w/ replies, xml ) Need Help??


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". ;-)


Comment on Re^2: End of String in qr// expression
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-04 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls