18 Sept 2010

Lack of coffee? RegEx help is at hand

I normally just use redet  but today I had a spurt of Web1.99b-ish-ness and tried:
http://gskinner.com/RegExr/
It needs Flash but saves major headaches on long regular expressions - paste your sample of text-to-be-acted-on in the main white box ("Welcome to RegExr 3.0...") and it will visually show the effect of the expression.

Improve your sex life immensely by saving your best RegExes to the "My Saved" tab in case you score and need to impress someone with your /(?:^|,)(\"(?:[^\"]+|\"\")*\"|[^,]*)/g  -fu.


In fact, if you manage to get Flash running on BSD then you automatically qualify for a lifetime of sexual favours worldwide, but that's another story ;) 

No comments:

Post a Comment