擅长:python、mysql、java
<p>签出<a href="https://regex101.com/r/npHuK4/1" rel="nofollow noreferrer">regex101</a></p>
<p>您可以针对不同的输入测试regex表达式,并查看哪些匹配。它甚至解释了比赛中使用的规则。你知道吗</p>
<p>例如,对于<code>Agent \w+</code>的解释是:</p>
<pre><code>Agent matches the characters Agent literally (case sensitive)
\w+
matches any word character (equal to [a-zA-Z0-9_])
+ Quantifier — Matches between one and unlimited times, as many times as possible, giving back as needed
</code></pre>