Test, validate and match regular expressions
Validates passwords per line using three lookaheads: enforces a minimum length of 8 characters, requires at least one special character from the set !@#%?&*\|, and rejects any whitespace within the string. With global/multiline flags, it evaluates each line independently and matches the entire line only when all conditions pass. Typically used for password strength validation or scanning input for compliant credentials.