摘要:
1。在正则表达式中定义变量并调用:usingSystem;usingSystem.Text.RegularExpressions;publicclassTest{publicstaticvoidMain(){//Definearegularexpressionforrepeatedwords.Regexrx=newRegex(@"\b(?<word>\w+)\s+(\k<word>)\b",RegexOptions.Compiled|RegexOptions.IgnoreCase);//Defineateststring.stringtext=&qu 阅读全文
posted @ 2008-02-19 11:51
小y
阅读(1905)
评论(0)
推荐(0)

浙公网安备 33010602011771号