Skip over everything with .*, then backtrack to the last occurence.
In reply to Re: Match only last occurrence by Anonymous Monk in thread Match only last occurrence by sotona