Support for quantifiers and the shuffle operator in regular expressions
See original GitHub issueIs there a specific reason why quantifiers for regular expressions are not supported? (so things like a{2,10}
) If there is no specific reason, would you be open to a PR that implements it?
Also, what do you think of adding a special regex shuffle operator? This would be very handy to express languages like “all permutations of a,b,c”. My proposal would be to use the ~
character and implement a separate parser for that
Issue Analytics
- State:
- Created 10 months ago
- Comments:16 (11 by maintainers)
Top Results From Across the Web
Quantifiers in Regular Expressions | Microsoft Learn
Learn about regular expression quantifiers, which specify how many instances of a character, group, or character class must be present in ...
Read more >re — Regular expression operations — Python 3.11.1 ...
The solution is to use Python's raw string notation for regular expression patterns; backslashes are not handled in any special way in a...
Read more >Regex Quantifier Tutorial: Greedy, Lazy, Possessive - RexEgg
Regex Quantifiers Tutorial. Explains the fine details of quantifiers, including greedy, lazy (reluctant) and possessive.
Read more >Regular Expressions - Oracle Help Center
A regular expression is basically a sequence of characters that defines a search pattern, which is used for pattern matching. Regular expressions vary...
Read more >How Do Regular Expression Quantifier Work? - Blog
Quantifiers are used to quantify how many times a part of your regular expression should be repeated. Every time you want to repeat...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eliotwrobson Very well! Issue reopened. 🙂
@eliotwrobson pyparsing is a dependency of pandoc, which I used to compile my Markdown README to RST for PyPI (see c669875380fd63f7a69b96b7ae3a02ff0aa6dd8b). I removed pandoc a while back since PyPI now has native Markdown support, but I guess I forgot to remove pyparsing as well.
@EduardoGoulart1 Looking forward to your PR! Please remember to add the appropriate unit tests and documentation (under
docs/regular-expressions.md
) as well.