Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] A way to access $Matches.Groups[uint].Captures[uint] within autoupdate #5909

Open
brian6932 opened this issue Apr 19, 2024 · 0 comments

Comments

@brian6932
Copy link

brian6932 commented Apr 19, 2024

Feature Request

Is your feature request related to a problem? Please describe.

Currently, when making capture groups, we can only access $Matches.Groups[uint].Value, sometimes you may need to access the actual Captures in each group, for example.

(foo){2}(bar)

So how do we access the foos? We can't. $Matches.Groups[1].Value is foofoo, and $Matches.Groups[2].Value is bar. We need $Matches.Groups[1].Captures[0] & $Matches.Groups[1].Captures[1]. The only thing you can actually do at the moment's copy-paste the regex again, and add named groups, that's not good.

Describe the solution you'd like

So this is the tough part. We'd want to use a character delimiter that can't appear in URIs to delimit the variable in the autoupdate.url, so maybe something like $match1\capture1 or $match1$capture1.

@brian6932 brian6932 changed the title [Feature] A way to access $Matches.Groups[uint].Captures[uint] [Feature] A way to access $Matches.Groups[uint].Captures[uint] within autoupdate Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant