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: <%-{-{-{-<
In reply to Re^2: How to get only the next word matching the regex in the line
by AnomalousMonk
in thread How to get only the next word matching the regex in the line
by oysterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |