in reply to Re: Replacing between patternsin thread Replacing between patterns
la" | perl -0777 -pe 's/ ABC .*? XYZ .*? $ /[DATA]/msx'
The wind blew the wrong way
Leaves on the line
The wrong kind of snow
Yes, but I didn't inhale
Categorically, er, no. Unless I was drunk at the time
The lines of Venus were in the wrong juxtaposition
No-one needs more than 640K of RAM
The dog ate my homework
It's my first day
Results (100 votes). Check out past polls.