Regext_Replace : REGEXP_REPLACE « Regular Expressions Functions « Oracle PL/SQL Tutorial






The REGEXP_REPLACE function may have these arguments:

REGEXP_INSTR(String to search, Pattern, [Position,
  [Occurrence, [Return-option, [Parameters]]]])

Replace everything from one lowercase "t" to the next with some field

SQL>
SQL> SELECT REGEXP_REPLACE('This is a test','t.+t','XYZ') FROM dual;

REGEXP_REPLAC
-------------
This is a XYZ

SQL>








18.4.REGEXP_REPLACE
18.4.1.Regexp_Replace returns the source_string with every occurrence of the pattern_to_find replaced with the replace_string
18.4.2.Regext_Replace
18.4.3.The Backslash as an Escape Character
18.4.4.REGEXP_REPLACE(x, pattern [, replace_string [, start [, occurrence [, match_option]]]]) searches x for pattern and replace it with replace_string
18.4.5.Convert a name in the form 'first middle last' into the 'last, middle first' format