Posts

Showing posts from June, 2017

.Net Regular Expressions Demystified Part 1

Image
In very simple terms we can say that "regular expression is a group of characters that defines a pattern" and using that pattern we find out specific information that we required in our case So the regular expressions are nothing but a group of characters that have special meanings to regular expression engine which is already installed in .Net framework and represented by System.Text.RegularExpressions.Regex   . Goal of Article My goal in this article is to give you a basic understanding of regular expressions in very short amount of time. I will guide you that enough so that you can create and use your own regular expressions in your .Net applications to meet your needs. At the end of this article you will be able to create your own regular expressions to match a standard phone number, social security number, email address, postal code etc. Prerequisites You must have a basic understanding of C# Language and some basic concepts of OOP (object-oriented progr