Hello, I'm the creator of this (trevmex is one of my co-workers). I just want to thank everyone for the feedback so far, I am looking into the issues that have been brought up (they'll have to wait until this evening to be fixed though...I have a day job).
Neat tool, I like how clear the visualizations are. It didn't work for me under Chrome on OSX, though. Chrome Version 23.0.1271.101, OSX 10.7.5.
Regexper: Beautiful regexp visualizations
51–60 of 132 posts
Re: Regexper: Beautiful regexp visualizations
#52\b(?:((?:https?|mailto|s?ftp): )(?:\/{1,3} |[a-z0-9%]) |w{2,3}\d{0,3}[.]|[a-z0-9\.\-]{1,40}[.][a-z]{2,4}\/)(?: \&[a-z]{2,8}\; | [\w\(\)\.\/\:\@\#\?\=\&\-\!\~\;\'\[\]] | \%[0-9]{2})+
This is after changing ?> to ?: since it doesn't understand the non-backtracking syntax.
Re: Regexper: Beautiful regexp visualizations
#53Neither beautiful nor a visualization really. For the uninitiated, there's an isomorphic relationship between regular expressions (not PCREs which are way more complicated) and finite state automata proving that if you have a regexp you can generate a FSA for it, and visa versa. What we have here is a system that generates a graph of the finite state automaton for any given regular expression. Neat project, misleadin…
Re: Regexper: Beautiful regexp visualizations
#54This is great. Has this approach to visualizing loops and structures been tried with general programs? Indentation and color coding seems to be the limit to the visual expressiveness in most IDEs because they tend to stay withing the format of plain text files. I'd really like to see some more creative visuals like this for making program structure visible.
I don't know if there's a name for this style of display, but it's the same as the way JSON is depicted on its official site. http://www.json.org Edit: It's called a Railroad Diagram.
Re: Regexper: Beautiful regexp visualizations
#55Re: Regexper: Beautiful regexp visualizations
#56Re: Regexper: Beautiful regexp visualizations
#57Hello, I'm the creator of this (trevmex is one of my co-workers). I just want to thank everyone for the feedback so far, I am looking into the issues that have been brought up (they'll have to wait until this evening to be fixed though...I have a day job).
Re: Regexper: Beautiful regexp visualizations
#58Earlier quoted context omitted.
I don't know if there's a name for this style of display, but it's the same as the way JSON is depicted on its official site. http://www.json.org Edit: It's called a Railroad Diagram.
No, it's called a finite state machine ;)
Re: Regexper: Beautiful regexp visualizations
#59 ^1?$|^(11+?)\1+$
I noticed two glitches:1) It gives me the same output image for these two different regexes:
^[a-x]*yo$
^[a-x]+yo$
2) It gives me a server error for this: a(b*(c*(d*)*)*)
Edit: I was wrong about glitch 1. See below.