title: Salesforce validation rule for US and International Phone Number Regex not accepting spaces
body: <p>I have a validation rule checking for 10 digit US phone numbers, 11 Digit US and Canadian phone numbers and international phone numbers beginning with a + where the country code did not begin with a 1, they want dashes and spaces allowed.  my validation rule seems to be working except for allowing spaces.  </p>
  
  <pre><code>AND(
  NOT(ISBLANK( Physical_Service_After_Hours_Phone__c)),
  NOT(REGEX( Physical_Service_After_Hours_Phone__c, "(\\d){10}")),  
  NOT(REGEX(Physical_Service_After_Hours_Phone__c,"^((\\1)?\\d{11})?$")),
  NOT(
  AND(
  OR(
  LEN(Physical_Service_Scheduling_Phone__c )=0,
  REGEX(Physical_Service_After_Hours_Phone__c, "^(\\+)([2-9])[0-9\\-\\s]+")
  )
  )
  )
  )  
  </code></pre>