password validation with regular expression in javascript
function CheckPassword(inputtxt)
{
var paswd= /^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{7,15}$/;
if(inputtxt.value.match(paswd))
{
alert('Correct, try another...')
return true;
}
else
{
alert('Wrong...!')
return false;
}
}
var strongRegex = new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})");
Also in JavaScript:
- debugger js
- js copy array into another
- react replace all line breaks with br
- js window resize listener
- generate random number javascript
- escape in javascript
- js retrieve form data
- how to go back one directory in git bash
- run javascript when typing
- json stringify pretty
- Javascript get text input value
- javascript detect textarea change
- react prevstate
- js unique using set
- javascript after 2 months date find
- javascript get the last element of an array
- button click function in js
- shadow elevation react native
- jquery remove multiple class
- react three fiber
- how to get the value of radio button in jquery
- jquery wrap inner text
- jason rpc reactjs
- remove property mongodb