Sniberb
Sniberbβ€’3y ago

πŸŽƒ Spookyberb πŸŽƒ – 12-08 Nov 4

Whats wrong with my regex expressions? Number, letter and min length of 2: /\d{1,}\w{1,}/ Number, lower case letter, upper case letter and min length of 3: /[a-zA-Z\d]/
4 Replies
S3BAS
S3BASβ€’3y ago
Number, letter and min length of 2
Is it required to have at least 1 of each?
Number, lower case letter, upper case letter and min length of 2:
[] denotes a set where any one of the elements should be present
Sniberb
SniberbOPβ€’3y ago
yes, it has to have minimum one of each and then you can add whatever you want
S3BAS
S3BASβ€’3y ago
\w also includes numbers so 22 would be accepted
reactibot
reactibotβ€’3y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1038062225354665987