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.
sql中是否有类似“包含”或“喜欢”的选项来验证文本片段。我只需要验证一部分代码是静态的,其余的是动态的。
您可以使用“提取正则表达式”类型的提取规则而不是验证规则,只需确保将Required属性设置为true. 虽然提取规则必须命名上下文参数以保存找到的文本,但无需在其他地方使用该上下文参数。
Required
true
验证规则和提取规则在它们的作用上非常相似,只是提取规则保存找到的文本,并且可选地通过Required属性,如果未找到或找到文本,则测试失败或失败。