title: how to test regex in javascript in if statement
body: <p>I need to check this regex on a variable in if statement of javascript</p>
  
  <pre><code>var re = any valid regular expression that will check if value contains a-zA-Z or any special character expcept . ; 
  </code></pre>
  
  <p>as here </p>
  
  <pre><code>if(selling_price=="" || selling_price==" " || retail_price==" " || retail_price=="" || re.test(selling_price) || re.test(retail_price))
  </code></pre>
  
  <p>selling_price and and retail_price both variables needed to be checked with this regex.(please suggest regex)</p>