Sunday, July 17, 2011

Quick Guide to Regular Expressions

Introducing Regular Expressions – Fastest learning Method

Regular Expressions (or regex) are string patterns which used for text processing. ASP, .NET, C#, Java and many other languages support RegEx. Simply it contains string text and special instructions-statements.
RegEx is a minilanguage that has a special syntax and instructions that you must learn and I like to discuss them step by step.
It is important to note that syntax is the easiest part of mastering regular expressions. The real challenge, however, is learning how to apply that syntax, how to dissect problems into solvable regex solutions. That is something that cannot be taught by simply following exercises, but like any language, mastery comes with practice.


RegEx Lesson 1 – Matching Characters
RegEx Lesson 2 – Matching Several Characters
RegEx Lesson 3 – Repeating Matches

No comments: