{"Entry":{"collection":"func","key":"regexp-match","name":"regexp_match","aliases":[],"metadata":{"changed_in":["19"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.6","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"10"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"14","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"15"},{"descriptions_changed":true,"doc_overhaul":false,"from":"18","group_changed":null,"signatures":{"added":["regexp_match(string, pattern [, flags]) → text[]"],"removed":[]},"status":"changed","to":"19"}],"content_hash":"8f2b1e6fd9c26d0dc0a4a5180ce7c233a68e751c28ed3258ed71ede27cd3d633","first_version":"10","group":"string","group_label":"String Functions And Operators","groups":["string","matching"],"imported_at":"2026-09-14T21:49:48.662253+08:00","last_version":"20","name":"regexp_match","name_key":"regexp_match","position":3030,"present_in":["10","11","12","13","14","15","16","17","18","19","20"],"signature":"regexp_match ( string text, pattern text [, flags text ] ) → text[]","signature_count":2,"slug":"regexp-match","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Returns substrings within the first match of the POSIX regular expression pattern to the string; see Section 9.7.3.1.5.","summary_zh":""}},"Definition":{"Collection":"func","Key":"regexp-match","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"regexp-match","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Returns substrings within the first match of the POSIX regular expression pattern to the string; see Section 9.7.3.","description_html":"Returns substrings within the first match of the POSIX regular expression \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e to the \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e; see \u003ca href=\"/docs/18/functions-matching.html#FUNCTIONS-POSIX-REGEXP\" title=\"9.7.3. POSIX Regular Expressions\"\u003eSection 9.7.3\u003c/a\u003e.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"},"group":"string","group_label":"String Functions And Operators","lang":"en","layout":"table-new","pages":["functions-string.html"],"prose_only":false,"signatures":[{"description":"Returns substrings within the first match of the POSIX regular expression pattern to the string; see Section 9.7.3.","description_html":"Returns substrings within the first match of the POSIX regular expression \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e to the \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e; see \u003ca href=\"/docs/18/functions-matching.html#FUNCTIONS-POSIX-REGEXP\" title=\"9.7.3. POSIX Regular Expressions\"\u003eSection 9.7.3\u003c/a\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"regexp_match('foobarbequebaz', '(bar)(beque)')","result":"{bar,beque}"}],"html":"\u003ccode class=\"function\"\u003eregexp_match\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eflags\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003etext[]\u003c/code\u003e","returns":"text[]","text":"regexp_match ( string text, pattern text [, flags text ] ) → text[]","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"regexp-match","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"regexp_match","Summary":"返回 POSIX 正则表达式pattern与string的第一次匹配中的子字符串；参见第 9.7.3 节。","BodyHTML":"返回 POSIX 正则表达式\u003cem\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e与\u003cem\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e的第一次匹配中的子字符串；参见\u003ca href=\"/docs/18/functions-matching.html#FUNCTIONS-POSIX-REGEXP\" rel=\"nofollow\"\u003e第 9.7.3 节\u003c/a\u003e。\u003cpre\u003eregexp_match ( string text, pattern text [, flags text ] ) → text[]\u003c/pre\u003e返回 POSIX 正则表达式\u003cem\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e与\u003cem\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e的第一次匹配中的子字符串；参见\u003ca href=\"/docs/18/functions-matching.html#FUNCTIONS-POSIX-REGEXP\" rel=\"nofollow\"\u003e第 9.7.3 节\u003c/a\u003e。","SourceRevision":"1b5ca64c","ContentHash":"52d276e15eabbcffc9071e0f021bcbc5dfe1860a41480fdcc8e37cfaf3401e0a","Payload":{"description_zh":"返回 POSIX 正则表达式pattern与string的第一次匹配中的子字符串；参见第 9.7.3 节。","description_zh_html":"返回 POSIX 正则表达式\u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e与\u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e的第一次匹配中的子字符串；参见\u003ca href=\"/docs/18/functions-matching.html#FUNCTIONS-POSIX-REGEXP\" title=\"9.7.3. POSIX正则表达式\"\u003e第 9.7.3 节\u003c/a\u003e。","signatures":[{"description_zh":"返回 POSIX 正则表达式pattern与string的第一次匹配中的子字符串；参见第 9.7.3 节。","description_zh_html":"返回 POSIX 正则表达式\u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e与\u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e的第一次匹配中的子字符串；参见\u003ca href=\"/docs/18/functions-matching.html#FUNCTIONS-POSIX-REGEXP\" title=\"9.7.3. POSIX正则表达式\"\u003e第 9.7.3 节\u003c/a\u003e。","returns":"text[]","text":"regexp_match ( string text, pattern text [, flags text ] ) → text[]","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"74d63136457169ff95952ba04b4969504b6f0872310e5111ddd05d4730ddfa4d","Text":"regexp_match ( string text, pattern text [, flags text ] ) → text[]","Returns":"text[]","Payload":{"description":"Returns substrings within the first match of the POSIX regular expression pattern to the string; see Section 9.7.3.","description_html":"Returns substrings within the first match of the POSIX regular expression \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e to the \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e; see \u003ca href=\"/docs/18/functions-matching.html#FUNCTIONS-POSIX-REGEXP\" title=\"9.7.3. POSIX Regular Expressions\"\u003eSection 9.7.3\u003c/a\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"regexp_match('foobarbequebaz', '(bar)(beque)')","result":"{bar,beque}"}],"html":"\u003ccode class=\"function\"\u003eregexp_match\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eflags\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003etext[]\u003c/code\u003e","returns":"text[]","text":"regexp_match ( string text, pattern text [, flags text ] ) → text[]","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
