如何建立正则表达式匹配的字符串不包含" AU = 1"?字符串、不包含、正则表达式、AU

2023-09-02 09:43:54 作者:脏话比谎话更干净

正如标题所说...:)

As the title says... :)

你能不能帮我建立一个正则表达式匹配不含有字符串AU = 1?

Could you help me to build a regex to match a strings NOT containing "au=1"?

我在玩负向前查找,没有运气,但我敢肯定,我应该使用该得到的东西。

I was playing with negative lookahead with no luck but I'm quite sure that I should get something using that.

谢谢!

推荐答案

我终于用这个正则表达式做了

I finally did it with this regexp

^(?!.*au=1).*$