I need a RegEx to do the validation (using Laravel, a php framework) for a swiss phone number which has to fit this format:
+41 11 111 11 11
The "+41" part has to be exactly this way while the rest (11 111 11 11) can be any number between 1 and 9.
The function that invokes the RegEx looks like this:
$regex = "thisIsWhereINeedYourHelp";
if (preg_match($regex, $value)) {
return true;
}
return true;
Thanks for your help!