SAP Knowledge Base Article - Public

2600312 - Regular expression for Mobile Number validation

Symptom

Validation on Mobile number field is needed to avoid characters other than numeric.

Environment

All DC

Reproducing the Issue

Incorrect characters need to be restricted from entering in Mobile number field

Cause

NA

Resolution

Accepting mobile number : +123-5476577871
Regular expression  : ^(\+\d{1,3}[- ]?)?\d{10}$


it satisfy following conditions : accept + only in begining and space(or -) should be allowed only after country code(only once).
Only 10 digit number should be allowed after country code.
Country code should be optional.
If country code doesnt exist, it should accept only 10 digit number

Keywords

Mobile number validation , Regular expression , regex mobile number validation , validate mobile number , KBA , LOD-SF-OBD-PAN , Panels, Panel Designer , Problem

Product

SAP SuccessFactors Onboarding 1511 ; SAP SuccessFactors Onboarding 1602 ; SAP SuccessFactors Onboarding 1605 ; SAP SuccessFactors Onboarding 1608 ; SAP SuccessFactors Onboarding 1611 ; SAP SuccessFactors Onboarding 1702 ; SAP SuccessFactors Onboarding 1705 ; SAP SuccessFactors Onboarding 1708 ; SAP SuccessFactors Onboarding 1711 ; SAP SuccessFactors Onboarding 1802 ; SuccessFactors Onboarding 1305 ; SuccessFactors Onboarding 1308 ; SuccessFactors Onboarding 1311 ; SuccessFactors Onboarding 1402 ; SuccessFactors Onboarding 1405 ; SuccessFactors Onboarding 1408 ; SuccessFactors Onboarding 1411 ; SuccessFactors Onboarding 1502 ; SuccessFactors Onboarding 1505 ; SuccessFactors Onboarding 1508