Posts

Showing posts from December, 2005

Regular Expressions in .Net

Regular Expressions Regular expressions have been widely popular in languages such as PERL and AWK and have been utilized for pattern matching, text manipulation and text searching. These languages are specifically is known for its advanced pattern matching features. Dot Net regular expressions are based on that of Perl and are compatible with Perl 5 regular expressions. To begin with, they are not as complex as they look, especially if you start experimenting with them. I would recommend that you download a tool such as Expresso (http://www.ultrapico.com/), to become familiar with regular expressions. Regular Expression Elements Some of the commonly used regular expression elements are: ^ Matches start of input $ Matches end of input . Matches any character except new line | OR * Match the preceding expression 0 or more number of times + ...