\ba\b|\bgoal\b|\bof\b 匹配a,goal,of任意其中一個單詞
^.*a goal of.*$ 在一句當中匹配a goal of.
\bwill\b|\bbe\b 包含“will"和“be”任一個單詞
^.*\b(will|be)\b.*$ 匹配包括“will"和"be"其中之一單詞的一整行。
^.*\bwill\b.*\bof\b.*\bthe\b.*$ 匹配按先后順序will, of, the的一整行。
\btouche?d?s?i?n?g? on\b 連在一起的詞組,包括過去式,過去完成式,現在進行式,第三人稱單數,如(touch on, touched on, touching on, touches on)
\btouch.*?\son\b (或者\btouch.*?on\b)連在一起的詞組,包括過去式,過去完成式,現在進行式,第三人稱單數,如(touch on, touched on, touching on, touches on),這里用到了懶惰匹配(非貪婪模式)
^.*[\w]$ 匹配了全部的單詞字符結尾的行,除了下划線之外的標點符號和漢字都被排除在外。
[^USr]\..*? 一句話以【.】結尾,同時不能是USr
注意事項:
1. 匹配大小寫
2. 有些符合從文本中復制