title: Ruby Format Validations [ No Whitespace ]
body: <p>I'm trying to create a format validation for a text field that will reject anything with whitespace.  Can someone help me out with the RegEx syntax?  This is what I've tried:  </p>
  
  <pre><code>no_whitespace = /\A[\S]\z/i
  
  validates :customurl,  :format =&gt; { :with =&gt; no_whitespace }
  </code></pre>
  
  <p>I'm new to programming and clueless about RegEx.  Any help would be greatly appreciated.  Thanks!</p>