Js regular expressions are used to determine whether a string must contain uppercase letters, lowercase letters, numbers, and special characters. The length must be between 8 and 64.
Not to mention writing regular expressions directly
Java code
/^ (? = .*? [A-z]) (? = .*? [A-Z]) (? = .*? \ D )(? = .*? ['~! @ # $ % ^ & * () _ \-+ ={}\ [\] \ |:; "'<> ,.? /]) [A-zA-Z \ d '~! @ # $ % ^ & * () _ \-+ ={}\ [\] \ |:; "'<> ,.? /] {8, 64} $/
Note:
/^ (? = .*? [A-z]) (? = .*? [A-Z]) (? = .*? \ D )(? = .*? [# @ * &.]). * $/
If you want to include all the above categories, write
/^ (? = .*? [A-z]) (? = .*? [A-Z]) (? = .*? \ D )(? = .*? [# @ * &.]) [A-zA-Z \ d # @ * &.] * $/
If you want to include only the content, write it like this.
Special characters :'~! @ # $ % ^ & * () _-+ = {} [] \ |:; "'<> ,.? /
Which of the following must be escaped:-[] \
Author "lastthelast"