title: Validate decimal numbers in Yii with regex
body: <p>I have tried </p>
  
  <pre><code>array('Number', 'match', 'pattern'=&gt;'(^\d*\.?\d*[0-9]+\d*$)|(^[0-9]+\d*\.\d*$)'),
  </code></pre>
  
  <p>as I want to only allow positive values with the format of 1.00, 4.34, 234.98</p>
  
  <p>I get this error though</p>
  
  <pre><code>preg_match(): Unknown modifier '|'
  </code></pre>