Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to delete conetents between two strings.

by Narveson (Chaplain)
on Sep 16, 2008 at 16:44 UTC ( #711745=note: print w/replies, xml ) Need Help??


in reply to How to delete conetents between two strings.

Slurp your stuff into a multi-line string, call it $stuff.

my $TEMP_PATTERN = qr{ \*\*Temp\*\* .* \*\*End \s+ Temp \s* \*\* }msx; $stuff =~ s/$TEMP_PATTERN//;

Replies are listed 'Best First'.
Re^2: How to delete conetents between two strings.
by Anonymous Monk on Sep 16, 2008 at 18:43 UTC
    Thanks a lot. It worked.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2016-09-30 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (574 votes). Check out past polls.