Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?i)\bS(?:ocial|oc\.?|\.)? ?(?!(?:S(?:ecurity|ec\.?|\.)?|Insurance) ?(?:Admin|Insurance|Office|Sec|Tax))(?:(?:S(?:ecurity|ec\.?|\.)?)|(?:Insurance)) ?(?:N(?:\.|o\.?|umbers?|um\.?)?|I\.?D)?(?:\d|#|\.|\b)
/
gm

Description

Used to detect supporting keywords in a Purview DLP Sensitive Information Type (SIT).

Purview uses the PCRE-compatible Boot.Regex engine.

This RegEx matches various representations of "Social Security Number", "Social Insurance Number", or "Social Security ID".

Submitted by J. Greg Mackinnon - 2 months ago (Last modified 2 months ago)