Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How can I extract the expression between two key words

by the_slycer (Chaplain)
on Sep 20, 2002 at 01:10 UTC ( [id://199357]=note: print w/replies, xml ) Need Help??


in reply to How can I extract the expression between two key words

You'd probably want to use a regular expression .. Look into perlre for more info, but this should get you started:
my ($match) = $text =~ /^0(.+)SUBCASE/;
Where $text is the text entered above.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-16 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found