Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Regular expression javascript

^.*(?=.{8,})(?=.*[a-zA-Z])(?=.*d)(?=.*[!#$%&? "]).*$

---

^.*              : Start
(?=.{8,})        : Length
(?=.*[a-zA-Z])   : Letters
(?=.*d)         : Digits
(?=.*[!#$%&? "]) : Special characters
.*$              : End
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Regular #expression #javascript
ADD COMMENT
Topic
Name
1+6 =