I made the patch that implements regexp_replace again.
The specification of this function is as follows. regexp_replace(source text, pattern text, replacement text, [flags text]) returns text Replace string that matches to regular expression in source text to replacement text. - pattern is regular expression pattern. - replacement is replace string that can use '\1'-'\9', and '\&'. '\1'-'\9': back reference to the n'th subexpression. '\&' : entire matched string. - flags can use the following values: g: global (replace all) i: ignore case When the flags is not specified, case sensitive, replace the first instance only. Atsushi Ogawa
Showing
- doc/src/sgml/func.sgml 21 additions, 1 deletiondoc/src/sgml/func.sgml
- src/backend/regex/regexec.c 7 additions, 3 deletionssrc/backend/regex/regexec.c
- src/backend/utils/adt/regexp.c 121 additions, 44 deletionssrc/backend/utils/adt/regexp.c
- src/backend/utils/adt/varlena.c 221 additions, 1 deletionsrc/backend/utils/adt/varlena.c
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 5 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/regex/regex.h 2 additions, 2 deletionssrc/include/regex/regex.h
- src/include/utils/builtins.h 4 additions, 1 deletionsrc/include/utils/builtins.h
- src/test/regress/expected/strings.out 28 additions, 0 deletionssrc/test/regress/expected/strings.out
- src/test/regress/sql/strings.sql 7 additions, 0 deletionssrc/test/regress/sql/strings.sql
Loading
Please register or sign in to comment