I have a string, say 1++++----2 and I want to replace ++++---- with a certain string, say string.
The I use the java function replaceAll, but it keep warning Dangling metacharacter every time I use it:
mystring.replaceAll("++++----", "string");