Regular Expressions made easy

one thing I can definately say I hate, is regular expression syntax, I do however like what Regular Expressions can do. In a quest to search for an easier better way of assembling regular expressions syntax I’ve stumbled across an awesome website named http://www.txt2re.com/

At first glimpse this website looks a bit complicated, but say we have an example string <a href=”foo.com/whatever”>blah</a>, and we want to extract the domain name, it’s as easy as entering the string, clicking Show Matches, and using the color coded chart to find the FDQN (full qualified domain name).

The beauty of this website is that it also generates the code required for you, they have a selection of a wide range of snippets including Perl, PHP, Python, Java, Javascript, ColdFusion, C, C++, Ruby, VB, VBScript, J#.net, C#.net ,C++.net, VB.net .. Nice.  At the end of the day I can just get on with my programming.

Filed under: code -

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Note: All spam will be eaten by Dr Daves Spam Karma 2, remember spammers, what goes around, comes around...

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>