Live data from Hacker News

RegExr: A website for interactive regex prototyping with syntax highlighting

regexr.com

11–20 of 72 posts

Re: RegExr: A website for interactive regex prototyping with syntax highlighting

#13
What I am missing is some kind of service to convert between different types of regexes. Like Java, Intellij Idea Search&Replace, vim, less, grep, egrep, sed. There are subtle (and sometimes not so subtle) differences between them which I always forgetting and have to trial&error a bit.

I wish there would be one single standard to regexes. Great tool but difficult to use because of many incompatible implementations.

Re: RegExr: A website for interactive regex prototyping with syntax highlighting

#18
post #8

Sites like this is great and all, but I wish they included some commonly used regexes. Like a list of 'good' regexs to validate phone numbers, emails and other common stuff. It would actually be pretty cool to have a site like this except you could add the regex to a list, and then people could upvote the regexe depending on the quality of it.

You can only validate a zip code, a phone number, an address, or an email address using a regex up to a point.

There are too many dispartities from a country to the next for the first three to hope validating anything withhout a bunch of false negatives. Some countries don't have zip codes.

For emails, blindly following the RFCs yields a monster (see [1]), and it won't help you if you run into oddball email addresses that are not RFC-compliant but work regardless due to technical implementations (or vice versa).

http://regular-expressions.mobi/email.html

Re: RegExr: A website for interactive regex prototyping with syntax highlighting

#19
I've been programming for about two decades. I had composed three regexes before my first coffee and before seeing this article this morning. My problem: I still don't have a good mnemonic to remember how magic differs grep, egrep, vim, awk, Perl, Python, etc. If that this site had modes and flavoured cheat-sheets I would live there!

Re: RegExr: A website for interactive regex prototyping with syntax highlighting

#20

My favorite is regulex[1] a visual explanation of regex [1] https://jex.im/regulex

http://regexper.com/ does the same thing.

I just wish there was something like this in reverse. Somewhere I can drag and drop the visual nodes and have it return the regex string to me.

Post reply on HN