Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by the_slycer (Chaplain)
on Sep 20, 2002 at 01:10 UTC ( #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
Node Status?
node history
Node Type: note [id://199357]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2020-05-27 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?