Okay I don’t know about you guys but I have always struggled with RegEx (Regular Expressions). I never got around on learning Regular Expressions so this website/tool are giving me the Expressions I need and I’m also learning RegEx as I move along.
I found a very nice online tool that creates the Regular expressions for you. Regular Expression R is an online tool for editing and testing Regular Expressions. It provides a simple interface to enter Regular expressions, and visualize matches in real-time editable source text. It also provides a handy Regular Expression snippet sidebar with descriptions and usage examples to make it easier to learn Regular Expressions through trial and error.
RegExr is built with Flex 3, and uses ActionScript 3′s built in RegExp engine. As with most engines, the AS3 RegExp implementation isn’t perfect, so you are likely to encounter some limitations and oddities. Likewise, RegExr is very much beta software (did I mention it was developed in a day?), and currently has no error handling whatsoever, so it’ll probably have a few quirks of its own.
So go to RegExr’s website. You will need Flash to view the website.
Now the following image show what you will get.
Now from here you can start typing your Regular Expression in the text-box at the top. It will show you while you are typing what the Regular Expression output will look like. This is really a very well designed tool. The best feature of this site is that you can search Regular Expression from the community. Go to the tab on the right called Community and type in what you are looking for. It will bring up Regular Expression that other users in the community has done.
You can also save your own Regular expression on the site and to top everything of you have the option of the desktop version as well. Please let me know what you think of this tool and if you know about better tools out there.
I want to thank Grant Skinner for this awesome tool.
Happy programming. You can contact me on Skype @ corvitech