title: codeigniter form validation
body: <p>I have the following php code using the codeigniter framework</p>
  
  <pre><code>$this-&gt;form_validation-&gt;set_rules('money', 'Money', 'integer|required|xss_clean');
  </code></pre>
  
  <p>It validates a money field as an integer. How can i validate the field as an integer OR a decimal number.</p>
  
  <p>I guessed it would be something simple like</p>
  
  <pre><code>$this-&gt;form_validation-&gt;set_rules('money', 'Money', '(decimal||integer)|required|xss_clean');
  </code></pre>
  
  <p>but it doesnt work!</p>