title: How to validate that the first char of a string is not a integer?
body: <p>I am using Ruby on Rails 3.2.9 and I would like to validate that the first char of a name (a <code>String</code>) is <em>not</em> a number (<code>Integer</code>). I am trying to use the following code:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    validates_each :name do |record, attr, value|
      record.errors.add(attr, 'cannot begin with a number') if ... # the first char is a number
    end
  end
  </code></pre>
  
  <p>How can I make that?</p>