Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0
-
None
-
None
Description
PostgreSQL's regexp_replace has the syntax: regexp_replace(source, pattern, replacement [, flags ]). This is not compatible with our syntax regexp_replace(str, regexp, rep). The flags parameter is an optional text string containing zero or more single-letter flags that change the function's behavior. Flag i specifies case-insensitive matching, while flag g specifies replacement of each matching substring rather than only the first one. Some examples:
regexp_replace('foobarbaz', 'b..', 'X') fooXbaz regexp_replace('foobarbaz', 'b..', 'X', 'g') fooXX regexp_replace('foobarbaz', 'b(..)', 'X\1Y', 'g') fooXarYXazY
More details: https://www.postgresql.org/docs/11/functions-matching.html#FUNCTIONS-POSIX-REGEXP