Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: exact word match

by samarzone (Pilgrim)
on Dec 22, 2010 at 12:23 UTC ( [id://878496]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if($name =~ /^[a-z0-9_]$/i && $name !~ /^(?:master|model|dbccdb|sybsec
    +urity|sybsystemdb|sybsystemprocs|tempdb|DBA)$/)
    {
      print "allowed\n"
    ...
    {
      print "not allowed\n"
    }
    
  2. or download this
    if($name =~ /^(?!(master|model|dbccdb|sybsecurity|sybsystemdb|sybsyste
    +mprocs|tempdb|DBA)$)(^[a-z0-9_]+$)/i)
    {
    ...
    {
      print "not allowed\n"
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-26 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found