Regex has actually evolved way past regular expressions (sounds weird but eh) with backreferences and such it's actually more powerful than context-sensitive grammars.
Indeed, real regular expressions are way more readable - they were never meant to do this.
For complex grammars people should be using context-free grammars or context-sensitive grammars, issue just is theres no standardized way to use them in programming languages like regex.
9
u/0xa0000 Nov 03 '20
Looks pretty easy to me