Regular expressions are an incredibly powerful tool, but can be rather tricky to get exactly right. This is a website that I wrote so I could quickly and easily test regular expressions during development.
Pick which programming language you are using:
Share codes are an easy way to share regexes. If you have a share code, enter it here:
A badly formed regular expression can run forever, making it very useful for denial of services attacks. Some of the engines/hosts are susceptible to these. Check the current engine status to see if they are running.
The original version was Java-based and did not require a JavaScript-enabled browser. No need to use it if the Java one above works for you, but a lot of links go directly to it:
Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems.
--
Jamie Zawinski in comp.lang.emacs (or
somewhere else).