Regular Expression Lab

This is a chance for members to flex their regex muscle on the myriad of patterns we look for in everyday data streams. Regardless the language you are working in the regex will be the same. Take for example this applet,

It was a rabbit hole exploration that led to the regex which gave these results.


The expression is started from the right side and hammered out moving leftward. It is silly, of course, and obviously not production worthy, but oddly enough it gets that far.

Turns out the rabbit hole has an end, in this case.



The applet above is in the PHP module on form validation.