finding last word in a trigger capture

Posted by Lilbopeep on Wed 06 Jun 2012 02:50 AM — 2 posts, 11,825 views.

USA #0
if I am capturing strings of unknown length, but I always know the last word is the word I need, how can I best capture that to be used in a trigger?

USA Global Moderator #1
Presumably a regular expression like this

^.*?(\w+)$

or maybe

^.*?([^ ]+)$

or even just
([^\s]+)$