Is it possible to do:
"hello, I have 65 dollars".replaceFirst("65", "$")
Current result is
scala> "hello, I have 65 dollars".replaceFirst("dollars", "$")
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
....
The expected result in scala 2.10:
hello, I have 65 $
Problem is with symbol $, I need to process it as string not regexp. I tried to put it into """, or raw"" but nothing helped