It's near to impossible to handle all sorts of international phone numbers using simple regex. You'd be better off using a service like numverify.com, they're offering a free JSON API for international phone number validation, plus you'll get some useful details on country, location, carr...
log('User provided invalid email. Showing validation error'); // Some code for validation error } or for intersections: export type Email = /email-regex/; export const Email = /email-regex/; export type Gmail = Email & /gmail-regex/; export const Gmail = { test: (input: string) =>...
Simple express middleware for uploading files. styleguide query hardlinks form-validation tap error-handling stringifier tslib spinner Float64Array break redux rgb test View more ducvinh101011z published1.0.0•6 months agopublished 1.0.0 6 months ago ...
function validateMobile($phone) { $pattern = "/^(05)\d{9}$/"; if (!preg_match($pattern, $phone)) { return false; } return true; } $phone = "0532486061"; if(!validateMobile($phone)) { echo 'Incorrect Mobile Number!'; } $phone = "05324860614"; if(validateMobile($phone)) { ...