Skip to content

Conversation

@frendsick
Copy link
Contributor

@frendsick frendsick commented May 26, 2025

Fix parsing the following special cases for range quantifiers in the regex of the expr command.

  • \{,\} zero or more
  • \{,6\} six or less

This PR also enables the rest of the ignored test_bre* tests and removes redundant escaping of the '*' character.

fixes #7664

@frendsick frendsick force-pushed the fix/expr-regex-range-quantifiers branch from 09ed38d to aae6207 Compare May 26, 2025 13:00
@frendsick frendsick force-pushed the fix/expr-regex-range-quantifiers branch from 68b5da5 to 837bab2 Compare May 26, 2025 14:04
@cakebaker cakebaker merged commit 8dbc37e into uutils:main May 26, 2025
74 checks passed
@cakebaker
Copy link
Contributor

Thanks!

@frendsick frendsick deleted the fix/expr-regex-range-quantifiers branch May 26, 2025 18:05
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.

expr: fails to match string to regular expression with escaped parens and braces

2 participants