-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support visual regex graphic? #25
Comments
This is a great idea and I'd love to add something like this to the app. Unfortunately Debuggex is not an open source library, so we can't use it for this kind of feature. If you happen to encounter an open source JavaScript library that draws railroad diagrams for regex, I'd certainly be interested to hear about them. I looked briefly today and didn't find any obvious candidates. |
I see, I guess it’s their greatest and primary (and non-free) feature then. I couldn’t find an alternative either… |
Hi!
Though I like any initiative to make regular expressions more convenient to use, I find most solutions to lack a visual understanding of the regex itself. Textual explanations of regular expressions don't really cut it IMHO. Probably the best source for visualising regex is Debuggex, which is unfortunately down with a gateway error half of the time. Would it be possible to include (something similar to) their awesome visual graphic as perhaps a new tab to your interface?
What I mean is this:
Output by Debuggex (which is mainly powered by their
static/js/main.js
):If you want to replace or extract, say, the domain, you can immediately tell that you're looking for group 2 (
\\2
). Might be obvious in this case, but for more complex expressions, this really matters and can save a lot of time.How awesome would it be, if your Shiny app could convert this:
into this:
😄
The text was updated successfully, but these errors were encountered: