For me, it's like writing 10824 "ten thousand eight hundred and twenty four".
I'd rather read a real regex using the verbose flag to comment groups:
- it shows the real regex for quick scanning and for those familiar with the syntax
- it explains things to the people that are not familiar with it or if the regex is complicated
- it forces the writer to divide the regex into logical groups
- such a system would have comment anyway, to indicate what you are matching such as "product code, date, color" for each part of the matching code.
- if you can't write or read regex and your job is programming, spending an afternoon learning them should be your next step. They are everywhere, no matter the tech stack: unix tools, IDE, 3rd party libs...
- there are plenty of regex tester UI, which let me copy the regex and test various case to see what it does, and tweak it
But I can see the value of such a lib for learning regexes.
I'd rather read a real regex using the verbose flag to comment groups:
- it shows the real regex for quick scanning and for those familiar with the syntax
- it explains things to the people that are not familiar with it or if the regex is complicated
- it forces the writer to divide the regex into logical groups
- such a system would have comment anyway, to indicate what you are matching such as "product code, date, color" for each part of the matching code.
- if you can't write or read regex and your job is programming, spending an afternoon learning them should be your next step. They are everywhere, no matter the tech stack: unix tools, IDE, 3rd party libs...
- there are plenty of regex tester UI, which let me copy the regex and test various case to see what it does, and tweak it
But I can see the value of such a lib for learning regexes.