News for hackers. Stuff that matters.
Re:Is there a regular expression to detect a valid regular e... by trisiak on Sunday September 08, 2019 @11:13AM (#20911009)
Yes, but you're taking too much. Without grouping, regex is weaker than regular languages.

Grouping & capturing parentheses can stay. It's only the back-referrences that you need to remove.

Re:Is there a regular expression to detect a valid regular e... by gbacon on Sunday September 08, 2019 @03:36PM (#20912856)
Regex matching with backreferences is NP-hard.

https://perl.plover.com/NPC/

Re:Is there a regular expression to detect a valid regular e... by saltcured on Sunday September 08, 2019 @04:47PM (#20913315)
Grouping is very useful, but I think you can get pretty far in practical patterns with a limit of k-nesting for k=0..3 or so. That pattern language would still be regular.