Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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));
Comment

PREVIOUS NEXT
Code Example
Javascript :: js scroll to top 
Javascript :: error:03000086:digital envelope routines::initialization error 
Javascript :: moment format sql date 
Javascript :: react native clear cach 
Javascript :: vue 3 cdn 
Javascript :: @ui-kitten/eva-icons npm ERR! code ERESOLVE npm 
Javascript :: Extract number from string javascripy 
Javascript :: discordjs 13 TypeError Valid intents must be provided for the Client. 
Javascript :: js change html lang 
Javascript :: async iife 
Javascript :: npm global flag 
Javascript :: react empty space 
Javascript :: shorthand for jquery document ready 
Javascript :: react native hide stack navigator title 
Javascript :: fetch get authorization header 
Javascript :: javascript check format uuid 
Javascript :: javascript remove focus from button 
Javascript :: best way to detect mobile device jquery 
Javascript :: react aos 
Javascript :: token invalid discord bot 
Javascript :: las element of object 
Javascript :: node wait 10 seconds 
Javascript :: uninstall node js from mac 
Javascript :: _redirects in netlify 
Javascript :: how to clear inner html using jquery 
Javascript :: set value in span using jquery 
Javascript :: can you use javascript split with more than one separator 
Javascript :: js timer loop 
Javascript :: npm ERR! code ELIFECYCLE npm ERR! errno 2 
Javascript :: jquery onchange input value 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =