Skip to content

Support string alternative syntax (curly braces pattern) #2

@michaelsproul

Description

@michaelsproul

Is there a plan to support string alternatives with curly braces, like {foo,bar}program matching fooprogram and barprogram?

To avoid code duplication in the matcher, I was thinking it might be a good idea to use the regex crate to implement this (as well as the rest of glob).

Support in other languages:

  • C/C++: yes using the GLOB_BRACE option.
  • Python: no
  • Ruby: yes
  • Java: yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions