{"Entry":{"collection":"func","key":"regexp-count","name":"regexp_count","aliases":[],"metadata":{"changed_in":["19"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"14","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"15"},{"descriptions_changed":true,"doc_overhaul":false,"from":"18","group_changed":null,"signatures":{"added":["regexp_count(string, pattern [, start [, flags]]) → integer"],"removed":[]},"status":"changed","to":"19"}],"content_hash":"a1fe3f8a7187ad93539b4b13b1923529ae71577fbeb8750513abe2a7010478a5","first_version":"15","group":"string","group_label":"String Functions And Operators","groups":["string","matching"],"imported_at":"2026-09-14T21:49:48.660607+08:00","last_version":"20","name":"regexp_count","name_key":"regexp_count","position":3027,"present_in":["15","16","17","18","19","20"],"signature":"regexp_count ( string text, pattern text [, start integer [, flags text ] ] ) → integer","signature_count":2,"slug":"regexp-count","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Returns the number of times the POSIX regular expression pattern matches in the string; see Section 9.7.3.1.2.","summary_zh":""}},"Definition":{"Collection":"func","Key":"regexp-count","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"regexp-count","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Returns the number of times the POSIX regular expression pattern matches in the string; see Section 9.7.3.","description_html":"Returns the number of times the POSIX regular expression \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e matches in 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 the number of times the POSIX regular expression pattern matches in the string; see Section 9.7.3.","description_html":"Returns the number of times the POSIX regular expression \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e matches in 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_count('123456789012', '\\d\\d\\d', 2)","result":"3"}],"html":"\u003ccode class=\"function\"\u003eregexp_count\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\u003estart\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\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 ]\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"regexp_count ( string text, pattern text [, start integer [, flags text ] ] ) → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"regexp-count","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"regexp_count","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_count ( string text, pattern text [, start integer [, flags text ] ] ) → integer\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":"0b33420bc315cd79cdb89ff9ec2505df559d73d4b1703a77a36202fa17c7a960","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":"integer","text":"regexp_count ( string text, pattern text [, start integer [, flags text ] ] ) → integer","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"8e27dc52fc59e3de87c15611aecbaeb7d68c25dfc98f7a28f6e7602d43ffc0c7","Text":"regexp_count ( string text, pattern text [, start integer [, flags text ] ] ) → integer","Returns":"integer","Payload":{"description":"Returns the number of times the POSIX regular expression pattern matches in the string; see Section 9.7.3.","description_html":"Returns the number of times the POSIX regular expression \u003cem class=\"parameter\"\u003e\u003ccode\u003epattern\u003c/code\u003e\u003c/em\u003e matches in 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_count('123456789012', '\\d\\d\\d', 2)","result":"3"}],"html":"\u003ccode class=\"function\"\u003eregexp_count\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\u003estart\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\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 ]\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"regexp_count ( string text, pattern text [, start integer [, flags text ] ] ) → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
