Skip to main content

Validation Patterns

USP validates common identifiers (such as names, usernames, email addresses, and passwords) using predefined regular-expression (regex) patterns. These policies ensure consistent input formats and help prevent invalid values during configuration.

Policy NameRegexDescription
Standard Naming Pattern^[a-zA-Z0-9_-]{1,255}$

Matches any string that:

  • Is 1 to 255 characters long
  • Contains only letters, numbers, underscores, or hyphens
  • Does not contain spaces or other special characters
Username Pattern^[a-zA-Z0-9_.@-]{1,255}$

Matches any string that:

  • Is 1 to 255 characters long
  • Contains only letters, numbers, underscores, periods, @ signs, or hyphens
  • Does not contain spaces or other special characters
Email Address Pattern[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}

Matches standard email addresses with:

  • A valid local part
  • An "@" symbol
  • A domain with at least a two-letter top-level domain
Password Pattern

^(?=.{8,72}$)(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[^A-Za-z0-9]).*$

Matches any password that:

  • Is 8 to 72 characters long
  • Includes at least 1 uppercase letter
  • Includes at least 1 lowercase letter
  • Includes at least 1 number
  • Includes at least 1 special character