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.

Canadian Ontario Health Pattern

Prev Next

Canadian Ontario Health Insurance Plan (OHIP) is assigned a unique 10-digit health number followed by any of the alphabet A-Z.

Validator

None

Matched expressions

Regex expressions

Description

Score

(?i:\b[0-9]{4} [0-9]{3} [0-9]{3}[A-Z]?\b)

Matches an alphanumeric string of the format NNNN NNN NNNA delimited by space. Begins with a 10-digit number followed by an alphabet [A-Z] (not case-sensitive).

1

(?i:\b[0-9]{4}-[0-9]{3}-[0-9]{3}[A-Z]?\b)

Matches an alphanumeric string of the format NNNN-NNN-NNNA delimited by hyphen. Begins with a 10-digit number followed by an alphabet [A-Z] (not case-sensitive).

1

(?i:\b[0-9]{10}[A-Z]?\b)

Matches an alphanumeric string of the format NNNNNNNNNNA without a delimiter. Begins with a 10-digit number followed by an alphabet [A-Z] (not case-sensitive).

1



Ignored expressions

None