Requires at least 8 characters, one uppercase, one lowercase, one number, and one special character.
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/const regex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;
regex.test('StrongP@ss1');import re
regex = re.compile(r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$')
bool(regex.match('StrongP@ss1'))import "regexp"
// Go regexp does not support lookarounds. Use another library or string checks.use regex::Regex;
// Rust regex crate does not support lookarounds. Use multiple checks instead.