regular expression to validate mobile number code example Example: regex pattern for mobile number /^(\+\d{1,3}[- ]?)?\d{10}$/