Neither 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…
Regexper: Beautiful regexp visualizations
21–30 of 132 posts
Re: Regexper: Beautiful regexp visualizations
#22The following valid js regexp gives a server error: ^/([^/]+)[/]?(_((site)?(edit|show|manager))(/|$))?([\s\S]*)
[\s\S]*
Doesn't this match every possible character, 0 to infinity times?Re: Regexper: Beautiful regexp visualizations
#23The following valid js regexp gives a server error: ^/([^/]+)[/]?(_((site)?(edit|show|manager))(/|$))?([\s\S]*)
Re: Regexper: Beautiful regexp visualizations
#24Re: Regexper: Beautiful regexp visualizations
#25Re: Regexper: Beautiful regexp visualizations
#26Useful. Thanks to this, found a bug in regex I did just today. `/[^0-9^\+]+/` -> `/[^0-9\+]+/` # Thought that I needed to negate "+" as well.
Re: Regexper: Beautiful regexp visualizations
#27Neither 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
#28Re: Regexper: Beautiful regexp visualizations
#29I 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
#30 ^([^\W]+)@((?:[a-zA-Z0-9-]+\.)+(?:org|com|net|gov))$
Though this works: ^([^\W]+)@([a-zA-Z0-9-]+\.)+(?:org|com|net|gov)$
And it doesn't seem to be the nested groups that are screwing it up because this works: ((?:tinker|tailor)+(?:soldier|spy))