How to make OR operator in regular expression? <p>What i want is something like this:</p> <pre><code>( [integer OR (ANY but not integer or white-space)] [(ONE white-space OR NONE)] [integer OR (ANY but not integer or white-space)] ) </code></pre> <p>Example of strings that will match: <code>99 $</code> <code>99$</code> <code>$ 99</code> <code>$99</code></p> <p>what i have now is two regular expression :</p> <p><code>^[^\d\s](\s{0,1})\d+</code> AND <code>^\d+(\s{0,1})[^\d\s]</code></p> <p>any ideas of how to replace those two with only one regular expression?</p>