Unfortunately your question isn't terribly clear, so I'm not entirely sure what you're looking for.
However, one thing I would suggest - if you want to match after the last occurance of something, it may be easier to apply a regex to a reversed string, e.g: