SimpleRegex/SRL-PHP

Generate the SRL for a regular expression

francislavoie opened this issue ยท 6 comments

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.

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

CJex/regulex#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!