Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}
/
gs

Description

For validating Office 365 Tenant ID string. For example when passing a human typed parameter in powershell.

Submitted by Fredrik.Wallander - a year ago (Last modified 9 months ago)