Rejex lets you craft regular expressions on-the-fly
Rejex is a very handy little site for building and testing regular expressions on the fly. It's composed of four simple text boxes and a very informative cheat sheet (not shown above, but after the jump). You feed your text into the "Test String" box (the middle one), and then your expression into the top box, and immediately see the matches in the bottom box. Here I am searching for instances of the letter "o" which are either at the beginning or the end of a word, so I got a match for "over" but not for "fox".
Half the tool's value lies with the informative cheat sheet, showing you exactly what each regex character does. I would have been happy for some "popular regexes" such as "matching an email address" and "matching a US phone number" etc, but even so, this is definitely a tool I am going to bookmark for future use.
Half the tool's value lies with the informative cheat sheet, showing you exactly what each regex character does. I would have been happy for some "popular regexes" such as "matching an email address" and "matching a US phone number" etc, but even so, this is definitely a tool I am going to bookmark for future use.
The regex cheat sheet:















Comments
6
Subscribe to commentsDavid S. (@seemsArtless)Mar 11th 2010 3:38PM
A great find, thanks, I'll be bookmarking this for future reference for sure!
Matias KorhonenMar 11th 2010 3:53PM
I'd recommend Rubular (http://rubular.com/) if you develop in Ruby.
kingkool68Mar 11th 2010 5:36PM
I've been using http://regex.larsolavtorvik.com/ and http://design215.com/toolbox/regexp.php for quite some time.
Ranyodh SinghMar 11th 2010 9:53PM
I use RegExr (http://gskinner.com/RegExr/).
temp1abcMar 12th 2010 11:51AM
Correction: "Here I am searching for instances of the letter "o" which are either at the beginning or the end of a word" -- that regex would be "\bo|o\b" not the one shown, "\bo" which searches for o at the beginning of a word only.
temp1abcMar 12th 2010 11:56AM
Actually, it looks like Rejex can't even do the regular expression I tested. It doesn't support the "or" pipe! What a ripoff. I'm sticking with my bookmarked page http://www.fileformat.info/tool/regex.htm and EditPad Pro which are much more functional.