in reply to Regex to find the last matching set in a long scalar
I can see how to make the expression non-greedy, which would make it possible to capture only the first setOK, so just reverse the string, find the first set, and reverse it back.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex to find the last matching set in a long scalar
by superwombat (Acolyte) on Nov 15, 2014 at 08:44 UTC | |
by Corion (Patriarch) on Nov 15, 2014 at 09:27 UTC | |
by superwombat (Acolyte) on Nov 15, 2014 at 09:43 UTC |