擅长:python、mysql、java
<blockquote>
<p>Also understanding out to get a normalized version (only digits and a the optional decimal point) out of it that strips the dollar sign.</p>
</blockquote>
<p>这也被称为“捕获”值;)</p>
<p>制作亚伦的基本示例:</p>
<pre><code>/^\$?(\d+(?:\.\d{1,2})?)$/
</code></pre>
<p>然后金额(不带美元符号)将在捕获组1中。</p>