Commonly Used Regular Expressions

Personally identifiable information (PII)

  • Social Security Numbers: \b(?!000)(?!666)([0-6]\d{2}|7([0-6]\d|7[012]))([ -])?(?!00)\d\d([ -|])?(?!0000)\d{4}\b