Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: regexp to grab STRING...[everything here]...DIF STRING

by frozenwithjoy (Curate)
on Oct 25, 2012 at 21:29 UTC ( #1000948=note: print w/ replies, xml ) Need Help??


in reply to regexp to grab STRING...[everything here]...DIF STRING

Like this?

$ perl -E '$string = "Zelazowa Wola, Symphonic Poem, For Orchestra In +B Minor, Op. 37"; say $string =~ m/(For.*) In/;' For Orchestra

or....

$ perl -E '$string = "Zelazowa Wola, Symphonic Poem, For Orchestra In +B Minor, Op. 37"; say $string =~ m/(For.*In)/;' For Orchestra In


Comment on Re: regexp to grab STRING...[everything here]...DIF STRING
Select or Download Code
Re^2: regexp to grab STRING...[everything here]...DIF STRING
by jeffrgsf (Novice) on Oct 25, 2012 at 22:35 UTC
    I coulda sworn I'd already tried that! Probably had an error due to something else.

    Thanks!!!! I'll make a donation in the next month or so when my next paycheck comes in! This site is da bomb!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-07-11 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls