I am trying to use Java replaceAll()
but Intellij tells me that the result is being ignored.
I am aware Strings are immutable but from what I can tell I am using it correctly. Is there a more proper was to utilize this String method?
For clearly I will post the code in the picture below and sb
is a StringBuilder
String insert = sb.toString();
insert.replaceAll("(\\(['0-9,]*\\',)",TABLE_NAME+"_seq.nextval,");
writer.write(insert);