You need to sign in to do that
Don't have an account?
Regular expressions for Phone number Validation
phone number should accpet only one + symbol at the starting followed by 10 digit number it should not accept + in the middle or end .
"^\\D*+([0-9 ]+)*"
it accepting + symbol at starting .
"^\\D*+([0-9 ]+)*"
it accepting + symbol at starting .
Example 1:- NOT( OR( ISBLANK(Phone), REGEX( Phone,"(\\D?[0-9]{3}\\D?)[\\s][0-9]{3}-[0-9]{4}")))
Example 2:-
http://salesforce.stackexchange.com/questions/42481/regex-validation-rule-for-telephone-number
http://forceguru.blogspot.in/2011/06/using-regex-in-validations.html
Example 3:-
https://help.salesforce.com/apex/HTViewSolution?id=000187896&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000187896&language=en_US)
Please let us know if now this will help u
Text data type
-Must have 10 digits
-Cannot have same number repeated more than 4 times eg; 9999988888- this number must not be accepted. We should show an error message saying “please enter correct/valid phone number.”
-Cannot have more than 4 consecutive or successive numbers eg; 9773312345 or 7891234567. This should not be allowed