diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index b669ab7f977..b39f97dc8de 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -3426,7 +3426,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_replace regexp_replace ( string text, pattern text, replacement text - [, flags text ] ) + , flags text ) text @@ -3445,8 +3445,8 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_replace ( string text, pattern text, replacement text, start integer - [, N integer - [, flags text ] ] ) + , N integer + , flags text ) text @@ -6117,13 +6117,13 @@ SELECT col1, (SELECT regexp_matches(col2, '(bar)(beque)')) FROM tab; It has the syntax regexp_replace(string, pattern, replacement - , start + , flags ) + or + regexp_replace(string, + pattern, replacement, + start , N - - , flags ). - (Notice that N cannot be specified - unless start is, - but flags can be given in any case.) + , flags ). The source string is returned unchanged if there is no match to the pattern. If there is a match, the string is returned with the