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

Re: Second Time Replace Regex

by davidrw (Prior)
on Dec 03, 2005 at 14:34 UTC ( #513803=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -i -0777 -pe 's/(\bAAAA )(QQQQ)(PPPP)( BBBB\b.*?\bCCCC XXXX )\2\3
    +\b/$1$2$3$4$2/sg' /tmp/f
    
  2. or download this
    blah
    stuff AAAA QQQQPPPP BBBB stuff
    ...
    more stuff blah
    and CCCC XXXX QQQQPPPP and more
    stuff.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2022-11-28 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?