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

filter with regex match in scripting plugin #156

Open
jankeirse opened this issue May 4, 2017 · 0 comments
Open

filter with regex match in scripting plugin #156

jankeirse opened this issue May 4, 2017 · 0 comments

Comments

@jankeirse
Copy link

I would like to use a regex for filtering from the script plugin. I have found that I can enable the regex matching after creating the filter using the following construct:

myfilter = someAttribute == "someregex"
myfilter.getUnderlyingQuery().filter.setUseRegex(True)
subgraph = g.filter(myfilter)
visible = subgraph

While this works, it seams a bit verbose and implementation specific to have to run the myfilter.getUnderlyingQuery().filter.setUseRegex(True) statement like that. Is there a better way I am failing to see?

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

2 participants