Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: search and replace

by Anonymous Monk
on Sep 28, 2012 at 08:12 UTC ( #996134=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    s{^\Qmail xmlfeedback -s \E(.*)$}{mail -s $1 xmlfeedback}sgx;
    
    s{^mail xmlfeedback -s ("feed invalid for agent \d+")\s*$}{mail -s $1 
    +xmlfeedback}sgx;
    
  2. or download this
    use Regexp::English;
    
    my $re = Regexp::English
    ...
    print $re;
    __END__
    (?^:^mail\ xmlfeedback\ \-s(\"feed\ invalid\ for\ agent\ (?:\d+)\")(?:
    +\s*)$)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2014-12-19 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (85 votes), past polls