Test, validate and match regular expressions
Validates password strength using positive and negative lookaheads. Requires at least 8 characters, including at least one uppercase letter (A-Z), one digit (0-9), and one special character from the set !$#+@%&. It rejects passwords containing any whitespace and attempts to block newline characters. Commonly used in registration forms and authentication systems to enforce password policies.