Open francislavoie opened 8 years ago
Yes, that would be pretty awesome, but I'm not sure if that's such an easy task. https://regex101.com handles displaying what's happening pretty well, but if someone has the time an knowledge to do so, you're welcome :)
This would be the most useful feature ever.
+1
Hi, this may help: https://github.com/JexCheng/regulex SRL and Regulex, are both amazing projects
https://github.com/JexCheng/regulex/issues/16
This issue would need to be solved first, regulex doesn't support pcre (php/perl regex)
Could probably reuse Doctrine's lexer to create a regex lexer (potentially separate library with a dependency)
You guys might want to check out https://www.regextranslator.com/ - they seem to have managed to implement a RegEx to SRL converter. Pretty cool!
This would be a killer feature for this project - being able to take existing regex and output a pretty printed SRL expression for it. That would allow verification and and modification of existing regexes much, much easier.