Regexper: Beautiful regexp visualizations
regexper.com
Regexper: Beautiful regexp visualizations
1–10 of 132 posts
Re: Regexper: Beautiful regexp visualizations
#2Use case for this feature: You encounter an undocumented regexp in someone else's code and want get a few quick examples of what it matches.
Re: Regexper: Beautiful regexp visualizations
#3For 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, misleading headline.
edit: let me add more constructive comments. What is useful about things like rubular (http://rubular.com/ ) is the ability to see how a Regexp behaves with a given input. Where a finite state chart can be useful is giving users a better impression of the internal workings of a particular regular expression. Where rubular can indicate where a match can be found, it would be cool to have a tool like this if you can show the path a particular input would take (and possibly fail out on) through a given regular expression.
Re: Regexper: Beautiful regexp visualizations
#4My only suggestion is that it would be nice to have each regex diagram be separately addressable, by either putting the regex as a query param and yielding a raw image/svg/whatever, or by using a shortened url like a gist after saving.
Very nice work.
Re: Regexper: Beautiful regexp visualizations
#5Also, this would be a very useful tool in a Formal Automata class.
Re: Regexper: Beautiful regexp visualizations
#6`/[^0-9^\+]+/` -> `/[^0-9\+]+/` # Thought that I needed to negate "+" as well.
Re: Regexper: Beautiful regexp visualizations
#7http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
and the server 500'd. Just joking, it's a very good tool.
P.S. it crashed with three nested groups (((a*)))
Re: Regexper: Beautiful regexp visualizations
#8Suggestions
1) it would be really nice if you could allow the user to share a regex with a friend. IE http://www.regexper.com/shared/some_unique_slug will display my saved regex
2) Add a Favicon
Great work thanks for creating this
Re: Regexper: Beautiful regexp visualizations
#9Pretty! I had wanted to make something like this, but one feature I thought of and you didn't do: For the entered regexp, generate 20 random matches and show them to me. Use case for this feature: You encounter an undocumented regexp in someone else's code and want get a few quick examples of what it matches.