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.

Microsoft Windows Product Key

Prev Next

A regular expression to match a Microsoft Product Key, which is a 25-character code that is used to activate Windows.

Matched expressions

Regex expressions

Description

Score

\b([a-zA-Z1-9]{5}-){4}[a-zA-Z1-9]{5}\b

Matches a 25-character alphanumeric string of the format CCCCC-CCCCC-CCCCC-CCCCC-CCCCC.

1



Ignored expressions

None

Validator

No validation