我想构建一个正则表达式来评估一个字符串,该字符串在顺序中不包含两个子字符串" ab"和" cd"
示例:
"This is ab test for cd" <= Not matched because containing "ab", "cd" in order
"This is cd test for ab" <= Matched because containing "ab" and "cd" but not in order
"This is cd test" <= Matched because not containing ab
"This is ab test" <= Matched because not containing cd
答案 0 :(得分:3)
答案 1 :(得分:1)