SimpleRegex / SRL-PHP

Simple Regex Language
https://simple-regex.com
MIT License
1.8k stars 112 forks source link

Generate the SRL for a regular expression #9

Open francislavoie opened 8 years ago

francislavoie commented 8 years ago

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.

KarimGeiger commented 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 :)

Aristona commented 8 years ago

This would be the most useful feature ever.

+1

gbrlmza commented 8 years ago

Hi, this may help: https://github.com/JexCheng/regulex SRL and Regulex, are both amazing projects

francislavoie commented 8 years ago

https://github.com/JexCheng/regulex/issues/16

This issue would need to be solved first, regulex doesn't support pcre (php/perl regex)

hoshsadiq commented 8 years ago

Could probably reuse Doctrine's lexer to create a regex lexer (potentially separate library with a dependency)

KarimGeiger commented 6 years ago

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!