文档介绍:urce for C# Code and Techniques 1 / 12
Programme
Search C#Today
Living Book
nmlkji nmlkj
Index Full Text
Advanced
CATEGORIES HOME SITE MAP SEARCH REFERENCE FORUM FEEDBACK ADVERTISE SU
The C#Today Article Previous article - Next art
February 1, 2002 January 31, 2002 February
Introducing .NET Regular Expressions with C#
by Tony Loton
CATEGORY: Other Technologies
ARTICLE TYPE: Cutting Edge ments
ABSTRACT Article
If you’re building any kind of application that involves looking for patterns in text, picking out segments Usefu
of text according to certain criteria, or transforming the text itself, you can save a lot of time and
energy by ing familiar with regular expressions. In this article, Tony Loton demonstrates the Innov
Regular Expression language itself, and also introduces the main classes of the .NET
namespace that allow you to harness the power of regular Inform
expressions from within your C#, Visual Basic or C++ programs.
10 resp
Article Discussion Rate this article Related Links Index Entries
ARTICLE
Editor's Note: This article's code has been updated to work with the final release of the .Net framework.
If you're building any kind of application that involves looking for patterns in text, picking out segments of text
according to certain criteria, or transforming the text itself, you can save a lot of time and energy by ing
familiar with regular expressions.
In this article, I'll demonstrate the Regular Expression language itself, which is not unique to the .NET framework.
That discussion may well be of interest if you're thinking of using the RE engine of the JDK , or if you're
working with one of the older languages - like AWK or Perl - that support regular expressions. Then I'll introduce
the main classes of the .NET namespace that allow you to harn