in reply to Pattern matching: Lazy vs. greedy
You could reverse the string , regex and match.
$string =~ /(god .*? eht)/i;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pattern matching: Lazy vs. greedy
by false_friend (Novice) on Mar 30, 2015 at 09:15 UTC |