modified on 4 February 2010 at 07:23 ••• 452 views

Using Regular Expressions

From Oramosswiki

Jump to: navigation, search

This page documents a number of uses of Regular Expressions in SQL.

REGEXP_REPLACE

Lets say you want to strip a character, e.g. a comma, from the end of a string:

SELECT REGEXP_REPLACE('Some characters with a trailing comma,',',$')
FROM   dual
/

Which returns:

Some characters with a trailing comma