Skip to content

Add (SSN) overload to .& operator for extracting regex group matches#159

Merged
nick-paul merged 1 commit intoaya-lang:masterfrom
BlazingTwist:op_regex_groups
Nov 19, 2025
Merged

Add (SSN) overload to .& operator for extracting regex group matches#159
nick-paul merged 1 commit intoaya-lang:masterfrom
BlazingTwist:op_regex_groups

Conversation

@BlazingTwist
Copy link
Copy Markdown
Contributor

This overload provides access to the matched text / indices of groups in RegEx.
You can also identify the number of capturing groups in a RegEx using "" regex 0 .& E

I extended the .& instruction, since it's already loosely related to RegEx operations, and avoids occupying an unused operator.

@nick-paul nick-paul merged commit fa9add5 into aya-lang:master Nov 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants