首页 相关文章 C#正则表达式应用范例

C#正则表达式应用范例

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...[ 查看全文 ]

2016-02-19 标签:

C#正则表达式应用范例的相关文章

手机页面
收藏网站 回到头部