Pretty simple.. I'm using the Compliance Feature in Google Admin
to catch certain expressions for quarantine. I've been using just
regular language, but have decided to use REGEX expression instead.
The REGEX allows for a lot better coverage and does not limit to 
just the exact phrase I type. I guess time will tell if this works
better or worse. Regardless....

This script simply allows a regular English expression and converts
it into a specific REGEX expression using the following.

A few notes on syntax.. Claude handles this for me, but good to know still
(?i) - case-insensitive
b & \b - marks a boundary around each work to assure full word matches
\s+ - covers irregular spacing and characters in between

Example
Text = Has shared you a secured
Regex = (?i)\bHas\b.*\bshared\b.*\byou\b.*\ba\b.*\bsecured\b

Corey.. Feb2026