Feb
24
2010

Search and replace within a field with regex in MySQL

SELECT * FROM 'table' WHERE `name` REGEXP '\r'
UPDATE 'table' SET 'field' = REPLACE(FIELD,"findvalue", "reaplcevalue") WHERE REGEXP 'regexp search expression'

About the Author: Urban Cetinski

Urban Cetinski :)

Leave a comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes