Regular expressions exclude a string line

1 regular greedy

Belonging greedy quantifiers, also known greedy quantifiers, comprising: 

"?" "{M, n-}", "{m,}",, "*" and "+." 

Non-greedy

"{M, n}?", "{M,}?", "??", "*?" And "+?." 

2 notepad ++ match a single kanji

  [\x{4e00}-\x{9fa5}]

  [^ \ X {4e00} - \ x {9fa5}] // characters other than

 

Regular expressions exclude a string line

 

^(?!.*trigger\(".+"\)).*$

 

 

reference:

https://www.cnblogs.com/520yang/articles/7473596.html

https://blog.csdn.net/xuyangxinlei/article/details/81359366

 

Guess you like

Origin www.cnblogs.com/wolbo/p/11353186.html
Recommended