in reply to Match only last occurrence
Update: See tye's important observation and correction in the reply. You could instead anchor the regex at the start to have it match the last. eg:
/^.*text: \d{3}/sa;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match only last occurrence (left-most then longest)
by tye (Sage) on May 31, 2016 at 14:46 UTC | |
by sotona (Scribe) on May 31, 2016 at 14:52 UTC | |
by hippo (Archbishop) on May 31, 2016 at 15:08 UTC | |
|
Re^2: Match only last occurrence
by sotona (Scribe) on May 31, 2016 at 14:47 UTC |