string t7 = "%41"; // capital A string p7 = "%([0-9A-Fa-f][0-9A-Fa-f])"; string r7 = Regex.Replace(t7, p7, HexConvert);
string t8 = @" /* * 传统风格的注释 */ "; string p8 = @" /\* # 匹配注释开始的定界符 .*? # 匹配注释 \*/ # 匹配注释结束定界符 "; string r8 = Regex.Replace(t8, p8, "", "xs");
string t9a = " leading"; string p9a = @"^\s+"; string r9a = Regex.Replace(t9a, p9a, ""); string t9b = "trailing "; string p9b = @"\s+$"; string r9b = Regex.Replace(t9b, p9b, "");
string t10 = @"\ntest\n"; string r10 = Regex.Replace(t10, @"\\n", "\n");
string t11 = "55.54.53.52"; string p11 = "^" + @"([01]?\d\d|2[0-4]\d|25[0-5])\." + @"([01]?\d\d|2[0-4]\d|25[0-5])\." + @"([01]?\d\d|2[0-4]\d|25[0-5])\." + @"([01]?\d\d|2[0-4]\d|25[0-5])" + "$"; Match m11 = Regex.Match(t11, p11);
string t12 = @"c:\file.txt"; string p12 = @"^.*\\"; string r12 = Regex.Replace(t12, p12, "");
string t13 = @"this is a split line"; string p13 = @"\s*\r?\n\s*"; string r13 = Regex.Replace(t13, p13, " ");
string t14 = @" test 1 test 2.3 test 47 "; string p14 = @"(\d+\.?\d*|\.\d+)"; MatchCollection mc14 = Regex.Matches(t14, p14);
string t15 = "This IS a Test OF ALL Caps"; string p15 = @"(\b[^\Wa-z0-9_]+\b)"; MatchCollection mc15 = Regex.Matches(t15, p15);
string t16 = "This is A Test of lowercase"; string p16 = @"(\b[^\WA-Z0-9_]+\b)"; MatchCollection mc16 = Regex.Matches(t16, p16);
string t17 = "This is A Test of Initial Caps"; string p17 = @"(\b[^\Wa-z0-9_][^\WA-Z0-9_]*\b)"; MatchCollection mc17 = Regex.Matches(t17, p17);
string t18 = @" <html> <a href=""first.htm"">first tag text</a> <a href=""next.htm"">next tag text</a> </html> "; string p18 = @"<A[^>]*?HREF\s*=\s*[""']?" + @"([^'"" >]+?)[ '""]?>"; MatchCollection mc18 = Regex.Matches(t18, p18, "si");
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有