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;
In reply to Re: Match only last occurrence
by hippo
in thread Match only last occurrence
by sotona
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |