I am using JAVA and want to replace every instance of text between dollar signs. For example:
1st equation $\\frac{1}{\\mu -1}\\frac{2\\pi }{\\lambda }x$ 2nd eq
I believe it would be something like this...
myString.replaceAll("\\$[^$]*\\$", ""
The $0 in the replacement string should match the capturing group in the search regex per...
$0
String.replaceAll
Matcher.replaceAll