擅长:python、mysql、java
<p><strong>非捕获组</strong><code>(?: ... )</code>对正则表达式的匹配没有影响</p>
<pre><code>(?:^|[b_./-])[Tt]est
</code></pre>
<p><img src="https://www.debuggex.com/i/kbsY1H50R74tQ_fj.png" alt="Regular expression visualization"/></p>
<p>…所以在一行的开头它会匹配:</p>
^{pr2}$
<p>或文本中任何位置的以下选项之一:</p>
<pre><code>bTest
btest
_Test
_test
.Test
.test
/Test
/test
-Test
-test
</code></pre>