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

Support regex library #30

Open
Mdslino opened this issue Jun 11, 2019 · 0 comments
Open

Support regex library #30

Mdslino opened this issue Jun 11, 2019 · 0 comments

Comments

@Mdslino
Copy link

Mdslino commented Jun 11, 2019

Today I tried to write the following recursive regex {(?:[^{}]|(?R))*} to find a json inside a string, but the std library re do not support this, then I install regex. But in pampy typing validation the pattern instance is checked against stdlib re.

elif isinstance(pattern, RegexPattern):
    rematch = pattern.search(value)
    if rematch is not None:
        return True, list(rematch.groups())

Is possible to support a external library or will it against the project goal? If its possivel I can open a PR for this.

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