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 - 2 years ago (Last modified 10 months ago)