Skip to content

regex: Enhance pcre_match to optionally return the matched string#3901

Merged
bogdan-iancu merged 1 commit into
OpenSIPS:masterfrom
ovidiusas:master_regex_match
Jun 3, 2026
Merged

regex: Enhance pcre_match to optionally return the matched string#3901
bogdan-iancu merged 1 commit into
OpenSIPS:masterfrom
ovidiusas:master_regex_match

Conversation

@ovidiusas
Copy link
Copy Markdown
Member

Summary
Enhance pcre_match() to optionally return the matched string

Details
Sometimes it is useful to have access to the matched string during a pcre_match() operation.

Solution
Provide an optional third parameter to pcre_match() to capture the matched string.

@bogdan-iancu bogdan-iancu self-assigned this Jun 2, 2026
@bogdan-iancu bogdan-iancu added this to the 4.1.0 milestone Jun 2, 2026
@bogdan-iancu bogdan-iancu merged commit 04637cb into OpenSIPS:master Jun 3, 2026
92 checks passed
@ovidiusas ovidiusas deleted the master_regex_match branch June 3, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants