Answers for "regex phone number format javascript"

2

javascript regex french phone number

function regexPhoneNumber(str) {
	const regexPhoneNumber = /^((\+)33|0)[1-9](\d{2}){4}$/; 
  
	if (str.match(regexPhoneNumber)) {
		return true;
	} else {
		return false;
	}
}

let phoneNumber = "+33777777777";
console.log(regexPhoneNumber(phoneNumber));
Posted by: Guest on March-26-2020
1

regex to check the phone number javascript

//To check that the phone number is of 10 digits
let regex=/^[0-9]{10}$/;
Posted by: Guest on May-12-2021
4

phone number regex

^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$
Posted by: Guest on November-28-2019
1

phone patter regex

^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$
Posted by: Guest on June-22-2020

Code answers related to "regex phone number format javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language