title: Excluding $ in a regex in CF
body: <p>I am working through some different form validation  types and I am having trouble getting all the items on my wishlist to work.</p>
  
  <p>My code  for my cfinput is this (works the same as a regular form input and has some canned javascript validation)</p>
  
  <pre><code>    &lt;cfinput type="Text" name="negdays" 
          range="0,23" 
          pattern="^(([^0]{1})([0-9])*|(0{1}))?$" 
          message="Negative Days must be a number between 0 and 23" 
          required="No"  width="2" &gt; 
  </code></pre>
  
  <p>This one should, and does, exclude everything  I need except the <code>$</code>. I am having difficulty stopping the form from accepting the <code>$</code>.</p>
  
  <p>Another example that is similar is this one where I want a range and to keep it numeric, so I mixed the validation types </p>
  
  <pre><code>    &lt;cfinput type="text" name="achamount" 
          validate = "range,numeric" 
          range = "0,99999" 
          message="ACH Amount must be a range from 0 - 99999 and  numeric only" &gt;
  </code></pre>
  
  <p>... and it works perfect - except for one problem:  a <code>$</code> is allowed.</p>
  
  <p>So I thought maybe I could add to it with a regex like this: </p>
  
  <pre><code>    &lt;cfinput type="text" name="achamount" 
          validate = "range,numeric,regex" 
          range = "0,99999"  
          pattern="^\d" 
          message="ACH Amount must be a range from 0 - 99999 and  numeric only" &gt; 
  </code></pre>
  
  <p>But my pattern is of course only to limiting it to numeric, which I am already doing. I need my pattern to exclude the dollar signs. But as a special character its not behaving like the other stuff I want to get rid of.</p>
  
  <p>Any ideas or suggestions? Everything I have tried either does not work or breaks all the other validation on the page.</p>