Skip to content

Allow for more flexibility with wildcard in selections #2436

@jbarnoud

Description

@jbarnoud

Is your feature request related to a problem? Please describe.

Selections strings allow for one wildcard that will glob any number of characters. This is surprising for advanced users of selections in VMD, for instance, that allows more flexible wildcards.

Describe the solution you'd like

Ideally, there should not be a limit in the number of wildcards that can be used. Also, the wildcard characters that can be used would be * for an undefined number of characters, . for one character, and ? for one or more characters.

Additional context

The fnmatch module from the standard library implements comparisons with such wildcards: https://docs.python.org/3.8/library/fnmatch.html

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