Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How do I extract all text between two keywords like start and end?

by Punto (Scribe)
on May 17, 2000 at 16:28 UTC ( [id://12070]=note: print w/replies, xml ) Need Help??


in reply to How do I extract all text between two keywords like start and end?

($content) = $string =~ m/ start (.*) end /;
That will get the stuff between " start " and " end " into $content.
  • Comment on Re: How do I extract all text between two keywords like start and end?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found