in reply to Re: How to get only the next word matching the regex in the line
in thread How to get only the next word matching the regex in the line
next if $current_line !~ /Grab this\s+'([^']+)'/;oysterperl: Note that '([^']+)' will not correctly match a single-quoted string that contains an escaped single-quote, but if that can occur, a regex can easily be written that can handle an escaped delimiter.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to get only the next word matching the regex in the line
by oysterperl (Novice) on Nov 11, 2019 at 05:29 UTC |