Skip to content

filter with regex match in scripting plugin #156

Open
@jankeirse

Description

@jankeirse

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions