I am working on to validate pone no as well as land phone no,
I got the regex from another SO post.
(?:\s+|)((0|(?:(\+|)91))(?:\s|-)*(?:(?:\d(?:\s|-)*\d{9})|(?:\d{2}(?:\s|-)*\d{8})|(?:\d{3}(?:\s|-)*\d{7}))|\d{10})(?:\s+|)
But I sure that laravel doesn't accept this format and as expected I got error,
preg_match(): No ending delimiter '/' found
I am new to Regex, Could some one please help me with the conversion,
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire