DevLooms
Tools
🔍

Regex for Strong Password

Regex pattern to enforce strong password rules.

Last updated: 2025-03-02

Regex pattern to enforce strong password rules. Use this tool whenever you need to work with regular expressions quickly.

All processing runs in your browser — your data is never sent to our servers. No sign-up required.

Use the fields below to enter your input, adjust any options, then copy or download the result.

How to use

  1. Enter or paste your input in the field below.
  2. Adjust options if the tool supports them.
  3. Copy or download the result as needed.

Pattern

/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/

At least 8 chars: one lowercase, one uppercase, one digit, one special (@$!%*?&).

Example valid

  • Password1!
  • MyP@ssw0rd

Example invalid

  • short
  • nouppercase1!
  • NOLOWER1!

Try it

1 match(es): "Password1!" @ 0