У меня есть этот Regex:Regex представлять «НЕ» в группе
<(\d+)>(\w+\s\d+\s\d+(?::\d+){2})\s([\w\/\.\-]*)(.*)
То, что я хочу сделать, это вернуть FALSE (не соответствует), если третья группа «MSWinEventLog» и возвращения «соответствует» для остальных.
<166>Apr 28 10:46:34 AMC the remaining phrase
<11>Apr 28 10:46:34 MSWinEventLog the remaining phrase
<170>Apr 28 10:46:34 Avantail the remaining phrase
<171>Apr 28 10:46:34 Avantail the remaining phrase
<172>Apr 28 10:46:34 AMC the remaining phrase
<173>Apr 28 10:46:34 AMC the remaining phrase
<174>Apr 28 10:46:34 Avantail the remaining phrase
<175>Apr 28 10:46:34 AMC the remaining phrase
<176>Apr 28 10:46:34 AMC the remaining phrase
<177>Apr 28 10:46:34 Avantail the remaining phrase
<178>Apr 28 10:46:34 AMC the remaining phrase
<179>Apr 28 10:46:34 Avantail the remaining phrase
<180>Apr 28 10:46:34 Avantail the remaining phrase
Как поставить «НЕ" MSWinEventLog
»в группе регулярных выражений ([\w\/\.\-]*)
?
Примечание:
Вторая фраза выше должна возвращать "не соответствует"
Haha Это точный ответ, который я хочу. В любом случае, спасибо вам большое. –