1 while s/ \. ( .* \. ) /_$1/x;
You can also make that non-greedy, it doesn't matter.
Makeshifts last the longest.
In reply to Re: Replace all occurrences but the last
by Aristotle
in thread Replace all occurrences but the last
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |