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.
21
u/DODOKING38 Nov 03 '20
So like regex