正则表达式否定句子中的单词

时间:2019-11-26 10:53:26

标签: regex

.*DAO02671.*((abc|def|ghc)).*$

上面是选择下面的第一,第二,第三行(+ ve scenerios)的正则表达式

hello|DAO02671|user|abc
hello|DAO02671|user|def
hello|DAO02671|user|ghc
hello|DAO02671|user|fraud
hello|DAO02672|user|abc 

为选择第4行(-ve scenerio)编写的正则表达式是什么

我写了。 DAO02671。(?!(abc | def | ghc))。* $但没有用

0 个答案:

没有答案