The following example shows the use of Regular Expresssions in C#.This program has basic validation scripts for validation easily useable in all programs.
/*
HowToCompile
csc /r:System.Text.RegularExpressions.dll,System.dll Validation.cs
/HowToComplie
*/
using System.Text.RegularExpressions;
using System;
class Validation
{
public static void Main()
{
String strToTest;
Validation objValidate=new Validation();
Console.Write("Enter a String to Test for...[ 查看全文 ]