question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for quantifiers and the shuffle operator in regular expressions

See original GitHub issue

Is 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:open
  • Created 10 months ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
caleb531commented, Dec 20, 2022

@eliotwrobson Very well! Issue reopened. 🙂

2reactions
caleb531commented, Dec 2, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found