Ok I accept I might be the be the only one on the planet that struggles with Regular Expression syntax!!
But on the off chance that I’m not the only one and like me you end up trying random regex patterns in the vain hope that something might work then check out these resources.
- http://www.radsoftware.com.au/articles/regexlearnsyntax.aspx – This was one of the best sites I found, it’s concise and focused on common scenarios and I actually understood some of the syntax for the first time!!
- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconusingregularexpressionclasses.asp – This MSDN site is ok but not as good at explaining what is going on as the first link
- Darren’s http://www.regexlib.com/ is a cool source of Regex Expressions
- http://www.codeproject.com/dotnet/expresso.asp – is a pretty cool tool but start with the first link so you understand what it is trying to achieve.
Hey, if you have read this far and have shared my pain and you know of other resources please add them in to the comments.
Oh if you are wondering why you should bother with Regular expressions then you probably aren’t validating your application input and you should be and they are invaluable for this purpose!! (yeah I know, motherhood and apple pie etc.. 🙂 )