JavaScript regex for calculations
<p>I'm looking to match individual characters from a calculation string such as:</p>

<pre><code>(123+321)*1.15
</code></pre>

<p>The list of characters I'd like to match is:</p>

<pre><code>0-9, ., +, -, *, /, (, ), %
</code></pre>

<p>Each character of the string will be passed into a function individually. I think I have the starting point (which works great with the numbers):</p>

<pre><code>if (character.match(/[0-9]{1}/) !== null) {
    // do something...
}
</code></pre>

<p>I'm not quite sure how to add the remaining characters though (I've always found regex confusing, even after reading countless articles on the subject).</p>
