I need is the last match. In the case below the word test without the $ signs or any other special character:
test
$
Test String:
<