Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Pattern Matching Query

by perlguy (Deacon)
on Sep 17, 2002 at 17:03 UTC ( [id://198553]=note: print w/replies, xml ) Need Help??


in reply to Pattern Matching Query

more in the spirit of TMTOWTDI:

UPDATE: I should have used the character class [a-z] instead of \l\w in the first part of the regex, that way numbers, uppercase characters and underscores wouldn't be matched. it would still work either way, though.

if (/(\l\w)(?{local $lastchar = ord $1;})(??{chr(++$lastchar)}){4}/) { # INSERT YOUR CODE HERE }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found