Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql regex replace

REGEXP_REPLACE(expression, pattern, replacement[, position[, occurrence[, match_type]]])

Example 1 - remove all "-" characters
SELECT REGEXP_REPLACE( fieldname, '-', '' ) AS newfieldname FROM tablename
Source by database.guide #
 
PREVIOUS NEXT
Tagged: #mysql #regex #replace
ADD COMMENT
Topic
Name
5+5 =