【软件自动化测试 - VBScript 8】== Questions?—— 正则表达式问题?
2011-09-08 11:01
447 查看
Set myReg = New RegExp
myReg.Global = True
myReg.IgnoreCase = True
myReg.Pattern = "[a-z0-9]{2,7}@163.com"
msgbox myReg.Test("test@163.com")
msgbox myReg.Test("ttttttttteeeeeeeeeeet@163.com")
“msgbox myReg.Test("ttttttttteeeeeeeeeeet@163.com")
” 这个为什么返回True
myReg.Global = True
myReg.IgnoreCase = True
myReg.Pattern = "[a-z0-9]{2,7}@163.com"
msgbox myReg.Test("test@163.com")
msgbox myReg.Test("ttttttttteeeeeeeeeeet@163.com")
“msgbox myReg.Test("ttttttttteeeeeeeeeeet@163.com")
” 这个为什么返回True
相关文章推荐
- 【软件测试自动化-QTP系列讲座 28】==正则表达式的应用 ==
- 【软件测试自动化-QTP NOTE 3】 ==VBScript 1st==
- 【软件测试自动化-VBScript基础讲座 1】== 变量显示声明 ==
- 【软件自动化测试 - VBScript 2】== VBS 函数
- 【软件自动化测试 - VBScript 7】= Using Locate to determine if specific text exists within a string
- 【软件自动化测试 - VBScript 5】== Get the recently createed Folder or a File in a Parent Folder
- 【软件测试自动化-QTP NOTE 4】 ==VBScript 2nd==
- 【软件测试自动化-VBScript基础讲座 5】== 函数指针 ==
- 【软件测试自动化-VBScript基础讲座 4】== Dictionary 对象 ==
- 【软件自动化测试 - VBScript 6】== Example of Split, Instr, Mid functions
- 【软件自动化测试 - VBScript 1】== FileSystemObject 基础知识
- 开放式有关软件自动化测试和问题
- 【软件自动化测试 - VBScript 3】== VBScript中的类
- 【软件测试自动化-VBScript基础讲座 3】== 类的组成 ==
- 软件自动化测试过程中遭遇的问题及解决思路
- 工欲善其事,必先利其器 软件工具开发关键词 protractor自动化测试工具 RegexBuddy正则 CodeSmith,LightSwitch:代码生成 CheatEngine:玩游戏修改内存值必备神器 ApkIDE:Android反编译工具 Reflector:反编译dll动态链接库
- vbscript正则表达式测试方法
- 软件测试自动化之路(7)----在Web GUI Automation Test中使用JavaScript应注意的问题
- 【软件自动化测试 - VBScript 4】== QTP_Add Method (Dictionary)
- 【软件测试自动化-VBScript基础讲座 6】== 单例模式 ==