Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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
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 cooling their heels in the Monastery: (11)
As of 2015-07-06 19:41 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 (81 votes), past polls