Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Answer: How can I match a multi-line regexp?

by I0 (Priest)
on May 30, 2002 at 04:47 UTC ( #170308=note: print w/ replies, xml ) Need Help??

perl -0777pi.bak -e 's/line1\nline2/new content/' files ..

UPDATE: why is there no "in reply to Answer: How can I match a multi-line regexp?" link


Comment on Re: Answer: How can I match a multi-line regexp?
Download Code
Re: Re: Answer: How can I match a multi-line regexp?
by blakem (Monsignor) on May 30, 2002 at 18:26 UTC
    In response to the update...

    Did the submission process go smoothly for this node? Over the past few weeks, replies to Q&A answers have been evoking "Permission Denied" errors upon submission. The end result has been a pile of empty "Re: Answer:" nodes. Perhaps the missing "in reply to" link is related.

    -Blake

      I did get a "Permission Denied" error upon submission, and the result was an empty node.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-07-28 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (198 votes), past polls