The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

US Social Security Number Randomization

Prev Next

This pattern identifies Social Security Number based on randomization.

Validator

In a 9-digit social security number:

  • The first 3-digit group means "area number".

  • The second 2-digit group means "group number".

  • The third 4-digit group means "serial number".

Validation checks

Description

US Social Security Randomization Validator

Numbers that aren't matched are:

  • The first 3-digits (area number) being 000, 666.

  • The first 3-digits (area number) being greater than 900.

  • Area, group, and serial number groups being 0. These patterns aren't valid:

    • 000-NN-NNNN

    • NNN-00-NNNN

    • NNN-NN-0000



Matched expressions

Regex expressions

Description

Score

\b[0-9]{3}-[0-9]{2}-[0-9]{4}\b

Matches a 9-digit SSN delimited by hyphen.

1

\b[0-9]{3} [0-9]{2} [0-9]{4}\b

Matches a 9-digit SSN delimited by space.

1

\b[0-9]{9}\b

Matches a 9-digit SSN without a delimiter.

1



Ignored expressions

None