/ab$/
Attempt to match $ fails unless cursor is after the last character of the string
grab
START |g r a b ab |g r a b Nope START g|r a b ab g|r a b Nope START g r|a b ab g r|a b Yes! $ g r<a b| Yes! END g r<a b> Yes!