正则表达式
来源:互联网 发布:淘宝详情页的图片大小 编辑:程序博客网 时间:2024/05/29 09:30
- //正则表达式判断RTSP://开头
System.Text.RegularExpressions.Regex check = new System.Text.RegularExpressions.Regex(@"^(rtsp|RTSP)://"); if (!check.IsMatch(txtRtsp.Text)) { string strMessage = "请填入正确的RTSP地址!"; MessageBox.Show(strMessage); return; }
- //正则表达式判断IP地址
System.Text.RegularExpressions.Regex check = new System.Text.RegularExpressions.Regex(@"^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$"); if (!check.IsMatch(txtip.Text)) { string strMessage = "请填入正确的IP地址!"; MessageBox.Show(strMessage); return; }
@"^(\d{3,5})" 3-5位的数字
1 0
- 【正则表达式】正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 2016/10/03 opencv操作像素
- leetcode Flatten Binary Tree to Linked List C++题解
- 中国的改变
- Leetcode-35. Search Insert Position
- Android与JavaScript互相调用与通信。
- 正则表达式
- JVM内存分区和GC回收算法
- 回文树模板
- Swift学习记录 -- 15.tableView的创建与基本操作
- 猜歌游戏 总结二
- 单链表的整表创建--头插法
- 猜歌游戏 三
- 单链表整表的创建--尾插法
- poj 3030 Nasty Hacks