Skip to main content
Skyhigh Security

Regular Expression Rules

To create a Regular Expression rule, enter:

  • Regular Expression. Regular expression rules allow you to define custom regular expression patterns to match arbitrary text. We strongly suggest that you use a tool like RegexBuddy to develop and test your regular expression before deploying your Skyhigh CASB policy. For DLP support Skyhigh CASB uses RE2 regex. We do not support negative look ahead and negative behind. For more information about RE2 syntax, see

IMPORTANT: Match-highlight text captured by individual matches of regular expression rules are limited to 2,000 characters. Otherwise, unbounded regular expression quantifiers (ex: .* or .+) may inadvertently capture full documents as part of the match highlights. Nevertheless, during policy evaluation, the regular expression is still processed in its entirety. No truncation is performed.

  • Location. Specify if the match is in:
    • All
    • Email Subject and File Metadata
    • Email Subject, Body, Attachments, and File Content
  • Match Count. Specify the number of unique matches and perform extra keyword validation.
  • Count each match only one time. Activate or deactivate the checkbox to count the matches only one time or multiple times.clipboard_ed2e3b6eb3c33bc6ba667eac4dc916cba.png
  • Was this article helpful?