I'm looking to perform a substitution (along the lines of String.replaceAll()) that matches with the character $. I have tried $, \$, $, and variations thereof in the regex string utilizing String.replaceAll() and with a Pattern.compile(). In both cases I get an "Illegal repetition near index X" error. Anyone have suggestions as to escaping the $ character for regular expression substitutions? ...