Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Getting a Regex Not to Match Again

by mdillon (Priest)
on Oct 10, 2002 at 20:43 UTC ( [id://204318]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cmd1 = "/bin/mv /etc/$i.d/$name /etc/$i.d/.NO.$name" or print 
            "/etc/$i.d/$name not found\n";
    
    `$cmd1` if $name =~ /\b(K|S)\d{2}?$expression\b/;
    
  2. or download this
    if ($name =~ /^[KS]\d{2}$expression$/)
    {
            rename "/etc/$i.d/$name", "/etc/$i.d/.NO.$name"
                    or print "/etc/$i.d/$name not found\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-23 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found