28 ms·
It'd be absolutely bonkers if you could use this exact same DSL to generate valid strings
by cfv 6y ago
It'd be absolutely bonkers if you could use this exact same DSL to generate valid strings
- recursive 6y agoWell, since you can use the regex itself to generate valid strings, it's certainly possible.
- m12k 6y agoYou can - use this to generate a regex, then run that regex through one of these libraries: https://stackoverflow.com/a/22133/126183 https://stackoverflow.com/a/22133/126183
- slifin 6y agohttps://github.com/lambdaisland/regal https://github.com/lambdaisland/regal Is a regex DSL that will let you do that, wouldn't be surprised to see others