如何在QTP中使用正则表达式检查大写字母?
我需要使用 QTP 检查网站的登录页面。我在全局数据表中有一个用户名列表。我需要 QTP 仅传递那些使用标准检查点的小写用户名。我在正则表达式中使用了 [az]+。但它也传递了那些大写的用户名。我该怎么做?
I need to check the login page of a website using QTP. I have a list of usernames in the global datasheet. I need QTP to pass only those usernames which are in smaller case using the standard checkpoint. I used [a-z]+ in the regular expression. But it is passing those usernames which are in uppercase also. How can i do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
取消整个字符串中的大写字母,如下所示:
negate uppercase in the whole string like this:
这是我使用
^ 和 $ 匹配字符串开头和结尾的位置,这意味着在整个字符串中搜索特定模式。
[AZ] 表示 A 到 Z 之间的大写字符范围;表示字符串的第一个字符必须是大写字母。
谢谢,
雷卡
Here is what I use
^ and $ match the positions at the beginning and end of the string, which mean search the entire string for the specific patter.
[A-Z] Means a range of characters between A to Z in Uppercase; means the 1st Character of the string must be in Capital letter.
Thanks,
Rekha