String.replaceAll()
returns a new string with the specified replacement. You need to do:
myString = myString.replaceAll( "old", "new" );
1
solved String replaceAll not working with string object [duplicate]
String.replaceAll()
returns a new string with the specified replacement. You need to do:
myString = myString.replaceAll( "old", "new" );
1
solved String replaceAll not working with string object [duplicate]