http://www.perlmonks.org?node_id=1000948


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

Replies are listed 'Best First'.
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!