Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 QTP 检查网站的登录页面。我在全局数据表中有一个用户名列表。我需要 QTP 仅通过使用标准检查点的小写用户名。我在正则表达式中使用了 [az]+。但它也传递了那些大写的用户名。我该怎么做?
否定整个字符串中的大写,如下所示:
^[^A-Z]+$
这是我使用的
^ 和 $ 匹配字符串开头和结尾的位置,这意味着在整个字符串中搜索特定模式。
[AZ] 表示大写字母 A 到 Z 之间的字符范围;表示字符串的第一个字符必须是大写字母。
谢谢,
雷哈