擅长:python、mysql、java
<pre><code>(\d*)(\w*) *(=) *(\d*)(\w*) *[+|\-|*|/] *(\d*)(\w*)
</code></pre>
<p>这个正则表达式怎么样?你知道吗</p>
<p>它分隔所有操作数和运算符。(在操作数内部,它还拆分数字和变量)。你知道吗</p>
<p><em>为了测试regex,我通常使用<a href="https://regex101.com/" rel="nofollow noreferrer">https://regex101.com/</a>,这样就可以在那里构建带有实时更改的regex。</em></p>