![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi all, was hoping someone could provide a regex for the following situation - im pulling my hair out Q) password needs to contain at least one number and have a minimum length of 6 |
#3
| |||
| |||
|
|
hi all, was hoping someone could provide a regex for the following situation - im pulling my hair out Q) password needs to contain at least one number and have a minimum length of 6 |
#4
| |||
| |||
|
|
Psybar Phreak wrote on 27 sep 2003 in comp.lang.javascript: hi all, was hoping someone could provide a regex for the following situation - im pulling my hair out Q) password needs to contain at least one number and have a minimum length of 6 [If this is a school test, you take the credit, but not earn it] function testing(x){ return /\d/.test(x) && /\S{6,}/.test(x) } document.write(testing("asdasdd4")+"<br>") document.write(testing("asdasdZZ")+"<br>") document.write(testing("dd4")+"<br>") -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
![]() |
| Thread Tools | |
| Display Modes | |
| |