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

Named capture groups with Chimera #51

Open
atomikalabs opened this issue Jan 26, 2023 · 0 comments
Open

Named capture groups with Chimera #51

atomikalabs opened this issue Jan 26, 2023 · 0 comments

Comments

@atomikalabs
Copy link

First, thanks for all the work on this extremely useful library –

#32 (comment)

Regarding named capture groups, does the above approach lead to a case in which, for a pattern like b'(?<foo>ax) bx (?<bar>cx), the names foo and bar can be recovered (along with their associated content) in the match handler?

The goal would be to obtain the necessary context to create a dictionary such as

{
    "foo": "ax",
    "bar": "cx",
}
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