I've got a MySQL db which has unescaped ampersands (&) which need fixing without changing any properly escaped ampersands and other entities which are present - ie I need to change & to & without changing & to & or ń to ń.
I thought I'd be able to do it with a regular expression in a MySQL query but it seems this won't work as MySql doesn't support negative lookaheads in regular expressions.
Any suggestions as to how this could be achieved would be very welcome!
Thanks