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

Getting matched groups #383

Open
mingfang opened this issue Aug 31, 2021 · 0 comments
Open

Getting matched groups #383

mingfang opened this issue Aug 31, 2021 · 0 comments

Comments

@mingfang
Copy link

Is there a way to get the matched groups when using a rule matching pattern that contains groups?

For example, this code matches three groups.

@when_all(m.url.matches('(https?://)?([0-9a-z.-]+)%.[a-z]{2,6}(/[A-z0-9_.-]+/?)*'))

I would like to get the value of the matched groups.

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

No branches or pull requests

1 participant