Skip to content

Conversation

@matanshavit
Copy link

Implement support for POSIX character classes like [:space:], [:digit:], [:alpha:], etc. in glob patterns. All 12 standard POSIX classes are supported: alnum, alpha, blank, cntrl, digit, graph, lower, print, punct, space, upper, and xdigit.

The implementation uses ASCII-only definitions to avoid locale-dependent behavior. POSIX classes can be used alone or combined with regular character ranges (e.g., [[:digit:]a-f] for hexadecimal digits).

Fixes #2962

Implement support for POSIX character classes like [:space:], [:digit:],
[:alpha:], etc. in glob patterns. All 12 standard POSIX classes are
supported: alnum, alpha, blank, cntrl, digit, graph, lower, print,
punct, space, upper, and xdigit.

The implementation uses ASCII-only definitions to avoid locale-dependent
behavior. POSIX classes can be used alone or combined with regular
character ranges (e.g., [[:digit:]a-f] for hexadecimal digits).

Fixes BurntSushi#2962
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

Successfully merging this pull request may close these issues.

Missing support for [[:space:]] match group in the ignore crate

1 participant