Regular expression

Regular expression

I have the string: "holder h1"

the h1 part dynamically becomes "h2", "h3" etc.

sometimes the string contains: "holder finished h1"

How can I get the last word of string which would return "h1", "h2", "h3" or whatever the h I am currently on.

I hate regular expressions.

So you could say. How do I return the end word of a string no matter what it is.