Home
    Shop
    Advertise
    Write For Us
    Affiliate
    Newsletter
    Contact

Test Data Validation Using .Net Regular Expression

RegEx Home | .Net Regular Expression Syntax Summary | Add to Favorites

Regular expressions can be used to validate user input or some other data. This is achieved using Regex class from System.Text.RegularExpressions namespace. ASP.NET provides RegularExpressionValidator control specialized for validation of user input on web forms. More about both methods you can find at Data Validation With Regular Expressions In ASP.NET tutorial.

Validated

String to validate:

Regular Expression:

RegexOptions: