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