Why doesn\'t the following change the text for me in Android?
String content = \"test\\n=test=\\ntest\";
content = content.replaceAll(\"^=(.+)=$\", \"
Okay, I think I have an answer... this seems to work:
content = content.replaceAll("(?$1")
Doesn't it?
Edit: The above doesn't work, for some reason it copies the original text and places it after the substituted text... here's what finally did work:
content = content.replaceAll("(?<=(\n|^))=(.+)=(?=(\n|$))", "$2 ");