Regex in search assistance

$ is a special character in regular expressions meaning “end of input”.

The following regular expression will match these strings:

([\w-]+\$)

You can play around with your regular expressions on pages like http://www.freeformatter.com/java-regex-tester.html.