javascript - Java Script - Regex - Password validation with Hebrew characters -


I have a problem with password verification. This is my code:

  () {Var password = document.getElementById ("password"). Values; Var re = /^(? ====0-9]} {? ======##% ^ & amp; *]) [a-zA-Z0-9! @ # $% ^ & Amp; * ] {6,16} $ / / If (! Password.match (again)) {productprromt ("password is invalid", "command password prompt", "red"); return false; } Production Promet ("Password is OK", "Command passwordpropt", "Green"); Back true; }  

It says that its only invalid, so I thought it was because of regex. I asked if you can help with everything.

Thank you very much for the helpers!

try it

  // less than English or Hebrew language Less than eight numbers and / and characters ^ [a-zA-Z0-9 \ u0590- \ u05FF] {8,} $  

or

  / / At least eight characters: a number, an uppercase, a lowercase English letter and a Hebrew letter ^ (? =. * [0-9]) (? =. * [AG]) (? =. * [AG] ) (? =? * [\ U0590- \ u05FF]). {8,} $  

or

  // At least eight letters: a number and a large letter of lowercase English or Hebrew letter ^ (? =. * [0- 9]) (? =. * [Az | AZ | \ u0590- \ u05FF]). {8,} $  

Usage:

  var p = / ^ (??? =. * [0-9]) (= * [ Az | AZ | \ u0590- \ u05FF]) {8,} $ / g? .. Var s = "shlok world 2"; If (! P.test (s)) {console.log ("Invalid Password!"); }  

|


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -