如何在QTP中使用正则表达式检查大写字母?

发布于 2024-11-16 12:27:27 字数 110 浏览 8 评论 0原文

我需要使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

恰似旧人归 2024-11-23 12:27:27

取消整个字符串中的大写字母,如下所示:

^[^A-Z]+$

negate uppercase in the whole string like this:

^[^A-Z]+$
趁微风不噪 2024-11-23 12:27:27

这是我使用

^ 和 $ 匹配字符串开头和结尾的位置,这意味着在整个字符串中搜索特定模式。

[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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文