]> granicus.if.org Git - postgresql/commit
Add three new regexp functions: regexp_matches, regexp_split_to_array,
authorNeil Conway <neilc@samurai.com>
Tue, 20 Mar 2007 05:45:00 +0000 (05:45 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 20 Mar 2007 05:45:00 +0000 (05:45 +0000)
commit9eb78beeae01f2f0ccafc5d66a2003ea7e3952f9
tree8e4139ea736ab91319fff21b8654ef4d9150ac55
parent5e96b04a7cb1f35aa1b75680f8bfbeac7cedc178
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.
doc/src/sgml/func.sgml
src/backend/utils/adt/regexp.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/test/regress/expected/strings.out
src/test/regress/sql/strings.sql