title: Objective-c regex to check phone number
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/123559/a-comprehensive-regex-for-phone-number-validation">A comprehensive regex for phone number validation</a>  </p>
  </blockquote>
  
  
  
  <p>How to validate a phone number (NSString *) in objective-c? Rules:</p>
  
  <ul>
  <li>minimum 7 digits</li>
  <li>maximum 10 digits</li>
  <li>the first digit must be 2, 3, 5, 6, 8 or 9</li>
  </ul>
  
  <p>Thanks</p>