The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Regular Expression Examples

This section contains code examples that illustrate the use of regular expressions in common applications.

Example: Changing Date Formats

Provides an example that replaces dates in the form mm/dd/yy with dates in the form dd-mm-yy.

How to: Strip Invalid Characters from a String

Provides an example that strips invalid non-alphanumeric characters from a string.

How to: Verify that a String is in Valid E-Mail Format

Provides an example that you can use to verify that a string is in valid e-mail format.


Provides class library reference information for the .NET Framework System.Text.RegularExpressions namespace.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft