in reply to get last matches of the given string

With $ you can anchor your RegEx to the end of your input. So try something like

([a-zA-Z]+)$
HTH, Rata