馃摎 Is your documentation request related to a problem?
i'm trying to recreate a password requirements regex like the following:
password must contains al least 8 characters, one lowercase character, one uppercase char, one digit and one special character (! @ # $ % ^ & *)
const PASSWORD_RE= createRegExp(
(
oneOrMore(letter.lowercase).times.atLeast(1)
.and(oneOrMore(letter.uppercase).times.atLeast(1))
.and(oneOrMore(digit))
.and(
oneOrMore(
charIn('!')
.or(charIn('@'))
.or(charIn('#'))
.or(charIn('$'))
.or(charIn('%'))
.or(charIn('^'))
.or(charIn('&'))
.or(charIn('*'))
).times.atLeast(1)
)
)
.times.atLeast(8),['g']
)
i tried to paste the generated regex in one of the regex tester like regex101
but seems to not working as expected
the documentation seems lacking in terms of providing a fully understandable examples
can you help me to achieve a working password regex? Where am I doing wrong?
馃攳 Where should you find it?
No response
鈩癸笍 Additional context
No response
馃摎 Is your documentation request related to a problem?
i'm trying to recreate a password requirements regex like the following:
password must contains al least 8 characters, one lowercase character, one uppercase char, one digit and one special character (! @ # $ % ^ & *)
i tried to paste the generated regex in one of the regex tester like regex101
but seems to not working as expected
the documentation seems lacking in terms of providing a fully understandable examples
can you help me to achieve a working password regex? Where am I doing wrong?
馃攳 Where should you find it?
No response
鈩癸笍 Additional context
No response