kepler has asked for the wisdom of the Perl Monks concerning the following question:
I'm using:KP_what_I_want (space) or KP_what_I_want( or KP_what_I_want ( or KP_what_I_want + etc...
It's not working... it extracts the all expression ( without the KP_) Any ideas? Thanks, Keplermy ($exp) = $line =~ m/ KP_ # Required (.*) # Capture Desired Output (?:\s)? # Optional - Do not capture (?:\()? # Optional - Do not capture /xi;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String extract 2
by farang (Chaplain) on Jul 24, 2014 at 12:35 UTC | |
|
Re: String extract 2
by jellisii2 (Hermit) on Jul 24, 2014 at 12:03 UTC |