jeffrgsf has asked for the wisdom of the Perl Monks concerning the following question:
if ( $work =~ /(For #DON'T KNOW WHAT TO PUT HERE )/ ) { $instruments = $1; $instruments =~ s/[()]//g; #remove extra parentheses $work =~ s/$instruments//g; #remove instruments $instruments =~ s/^\s+//; #remove leading spaces $instruments = substr($instruments, 4, 100); #last line removes the substring "For " }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp to grab STRING...[everything here]...DIF STRING
by frozenwithjoy (Priest) on Oct 25, 2012 at 21:29 UTC | |
by jeffrgsf (Novice) on Oct 25, 2012 at 22:35 UTC | |
|
Re: regexp to grab STRING...[everything here]...DIF STRING
by AnomalousMonk (Archbishop) on Oct 25, 2012 at 23:23 UTC | |
|
Re: regexp to grab STRING...[everything here]...DIF STRING
by marquezc329 (Scribe) on Oct 25, 2012 at 22:26 UTC |