I have a problem with regex, I want to create pattern which will be check mobile number.
Mobile number starts with /^(50|51|53|57|60|66|69|72|73|78|79|88)/ and has only 9 digits.
Could You help me?
I have a problem with regex, I want to create pattern which will be check mobile number.
Mobile number starts with /^(50|51|53|57|60|66|69|72|73|78|79|88)/ and has only 9 digits.
Could You help me?
You could use a regex like following
$isMobileNumber = preg_match('/^(50|51|53|57|60|66|69|72|73|78|79|88)\d{7}/', $number);