Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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//;


Comment on Re: How to delete conetents between two strings.
Select or Download Code
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 chanting in the Monastery: (17)
As of 2015-07-30 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls