tags:

views:

29

answers:

1

I've seen MySQL SELECT examples using the REGEXP operator for matching.

Is there a way to do regular expression substitution in an UPDATE?

If not, what's the simplest method to run a regex substitution on all values in a column?

Feel free to suggest using any programming language or regex implementation.

+2  A: 

Basically, no. You can use some cumbersome REPLACE() calls, create UPDATE statements in a script which does support regex replaces, or use some UDF, this one for instance

Wrikken