developerinlondon
Programmer
ok i am trying to do a simple replacement in a multiline string but i cant seem to find an example anywhere. I tried mystring.replaceAll("'", "\'")
so that I get the ' replaced with \' (for escaping sql queries), but it doesnt seem to do much.
any ideas?
so that I get the ' replaced with \' (for escaping sql queries), but it doesnt seem to do much.
any ideas?