Add three new regexp functions: regexp_matches, regexp_split_to_array,
and regexp_split_to_table. These functions provide access to the capture groups resulting from a POSIX regular expression match, and provide the ability to split a string on a POSIX regular expression, respectively. Patch from Jeremy Drake; code review by Neil Conway, additional comments and suggestions from Tom and Peter E. This patch bumps the catversion, adds some regression tests, and updates the docs.
Showing
- doc/src/sgml/func.sgml 176 additions, 8 deletionsdoc/src/sgml/func.sgml
- src/backend/utils/adt/regexp.c 526 additions, 55 deletionssrc/backend/utils/adt/regexp.c
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 13 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/utils/builtins.h 7 additions, 1 deletionsrc/include/utils/builtins.h
- src/test/regress/expected/strings.out 225 additions, 2 deletionssrc/test/regress/expected/strings.out
- src/test/regress/sql/strings.sql 52 additions, 1 deletionsrc/test/regress/sql/strings.sql
Loading
Please register or sign in to comment