Regexper – Regular expressions visualizer
21–30 of 108 posts
Re: Regexper – Regular expressions visualizer
#22Nice. From this SO answer: https://stackoverflow.com/a/800847/415384 we get this: https://regexper.com/#%5E(%3F%3A(%3F%3A(%3F%3A0%3F%5B13578%5... or from another answer: https://regexper.com/#((1%7C0(00)*01)((11%7C10(00)*01))*%7C(... )
Re: Regexper – Regular expressions visualizer
#23Nice. From this SO answer: https://stackoverflow.com/a/800847/415384 we get this: https://regexper.com/#%5E(%3F%3A(%3F%3A(%3F%3A0%3F%5B13578%5... or from another answer: https://regexper.com/#((1%7C0(00)*01)((11%7C10(00)*01))*%7C(... )
That last link shows an error.
Re: Regexper – Regular expressions visualizer
#24Re: Regexper – Regular expressions visualizer
#25The Email::Valid Perl distribution ships with a more than 6000 character regex to validate E-Mail addresses. Both goo.gl and bit.ly refused to shorten it, and when I tried to paste the link here HN refused to accept my comment. But on a machine with Email::Valid installed do: perl -MEmail::Valid -wE 'say $Email::Valid::RFC822PAT' And copy the output into the Regexper form. It takes a while to render, but it'll eventu…
github gist?
Re: Regexper – Regular expressions visualizer
#26Isn't this just debuggex.com? That's hacker but not news.
Re: Regexper – Regular expressions visualizer
#27Neat! I also suggest: https://regexr.com/
That is cool. https://www.debuggex.com/ has nice visualization.
I actually started typing in random characters and tracing the matches through the graph for the Regex from StackOverflow mentioned earlier. I didn't know what the regex matches, so I played it like a game , trying to reach the finish by typing one character at a time.
When I finished, I saw that I had typed "01/31/1691" and then realised that it's a regex for dates.
Re: Regexper – Regular expressions visualizer
#28Suggestion: put a link to one or two examples to quickly get an idea of what it does.
Re: Regexper – Regular expressions visualizer
#29Edit: Add the missing ) to the url
Re: Regexper – Regular expressions visualizer
#30The Email::Valid Perl distribution ships with a more than 6000 character regex to validate E-Mail addresses. Both goo.gl and bit.ly refused to shorten it, and when I tried to paste the link here HN refused to accept my comment. But on a machine with Email::Valid installed do: perl -MEmail::Valid -wE 'say $Email::Valid::RFC822PAT' And copy the output into the Regexper form. It takes a while to render, but it'll eventu…
That being said... That regex is just noise. Nobody can tackle it all at once or by themselves, unless they specialise in just regex. It's 6599 characters, at least on my system. So at a wild stab, its the equivalent of 4,500 lines of obfuscated code.
You can't audit it, you just kinda have to trust it, and hope.
But with something like regexper, I can at least read it.