Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Simple regex question

by bart (Canon)
on Sep 29, 2012 at 09:05 UTC ( #996358=note: print w/ replies, xml ) Need Help??


in reply to Simple regex question

/^(?=.*[a-z])\w+$/i
(translation: all word characters, but at least a letter)

You don't say if you think underscores are acceptable...

/^(?=.*[a-z])(?!.*_)\w+$/i
(translation: All word characters, but at least a letter, an no underscore)

There.


Comment on Re: Simple regex question
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-07-31 03:23 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 (274 votes), past polls