Search
 
SCRIPT & CODE EXAMPLE
 

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}$/ 
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: hook use effect with class 
Javascript :: phaser3 simple player controll 
Javascript :: string variable 
Javascript :: nodejs mongodb native reuse single connection 
Javascript :: nodejs: redirect path to specific path 
Javascript :: function Tom(a, b) { return a + b; } 
Javascript :: marko js 
Javascript :: documentUrlPatterns 
Javascript :: js replay animation 
Javascript :: react native geolocation 
Javascript :: how to call ajax javascript 
Javascript :: how to delete an element from an array in javascript 
Javascript :: javascript trunc 
Javascript :: inertia.js 
Javascript :: react native icons 
Javascript :: functions javascript 
Javascript :: javascript find json value 
Javascript :: how to change class by is in js by toggle 
Javascript :: change url without reloading the page 
Javascript :: how to get country code in react native 
Javascript :: last item of array javascript 
Javascript :: get the max value from array js 
Javascript :: working of a recursive function 
Javascript :: check cookie existence js 
Javascript :: sum of a sequence 
Javascript :: react-native-geolocation-service 
Javascript :: axios remove existing token 
Javascript :: window open method for browser detection 
Javascript :: como ordenar um array em ordem crescente javascript 
Javascript :: javascript free code editors 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =