Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate the SRL for a regular expression #9

Open
francislavoie opened this issue Aug 30, 2016 · 6 comments
Open

Generate the SRL for a regular expression #9

francislavoie opened this issue Aug 30, 2016 · 6 comments

Comments

@francislavoie
Copy link

francislavoie commented Aug 30, 2016

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.

@francislavoie francislavoie changed the title Generate the SRL for a regex expression Generate the SRL for a regular expression Aug 30, 2016
@KarimGeiger
Copy link
Member

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
Copy link

This would be the most useful feature ever.

+1

@gbrlmza
Copy link

gbrlmza commented Aug 30, 2016

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

@francislavoie
Copy link
Author

francislavoie commented Aug 30, 2016

CJex/regulex#16

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

@hoshsadiq
Copy link

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

@KarimGeiger
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants