c# 正则表达式
来源:互联网 发布:淘宝无线端活动报名 编辑:程序博客网 时间:2024/06/03 22:38
using System; using System.Text.RegularExpressions; public class Test { public static void Main () { // Define a regular expression for currency values. Regex rx = new Regex(@"^-?/d+(/./d{2})?$"); // Define some test strings. string[] tests = {"-42", "19.99", "0.001", "100 USD"}; // Check each test string against the regular expression. foreach (string test in tests) { if (rx.IsMatch(test)) { Console.WriteLine("{0} is a currency value.", test); } else { Console.WriteLine("{0} is not a currency value.", test); } } } }
- C#中的正则表达式
- 常用C#正则表达式
- C#中的正则表达式
- C#正则表达式参考
- C#中的正则表达式
- C#中的正则表达式
- C#正则表达式小结
- C#正则表达式参考
- c# 正则表达式基础知识
- C#正则表达式
- c#中的正则表达式
- C#正则表达式参考
- C#正则表达式
- c#正则表达式
- C#正则表达式解读
- C#正则表达式参考
- C#中的正则表达式
- C#正则表达式小结
- 在win7中使用SEED-XDS560仿真器
- 101113
- 各种平板显示技术比较
- 常用的 正则表达式
- 2010成都网络赛H题解题报告
- c# 正则表达式
- Jbpm4.3 学习笔记一
- c# Regex
- c# 正则表达式 regex
- 10 11 02 浪费时间
- SQLite3 类型系统
- Ubuntu 10.10编译Bochs2.4.5笔记
- 兵马未动粮草先行——环境配置
- 万里长征第一步——Hello World