Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Expresiones regulares para diferentes tipos de campos de formularios

const expresiones = {
	usuario	: /^[a-zA-Z0-9\_-]{4,16}$/, 
	nombre	: /^[a-zA-ZÀ-ÿs]{1,40}$/, 
	password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*d)(?=.*[$@$!%*?&])([A-Za-zd$@$!%*?&]|[^ ]){8,15}$/, 
	email	: /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$/,
	phone	: /^d{7,14}$/ 
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Expresiones #regulares #para #diferentes #tipos #de #campos #de #formularios
ADD COMMENT
Topic
Name
6+1 =