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

Re: Regex: Specifying quantity for bracketed items

by injunjoel (Priest)
on Nov 10, 2004 at 21:17 UTC ( [id://406798]=note: print w/replies, xml ) Need Help??


in reply to Regex: Specifying quantity for bracketed items

Greetings all,
would something like this work?
/^[a-z0-9]{5,12}$/i
The ^ and $ will ensure that the string doesn't start or end with a space.

-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found