Microsoft Defender for Cloud Apps
Cloud and workloads

Work with the regular expression engine in Defender for Cloud Apps

In brief

The article now uses clearer terminology, describes regular expressions for content inspection and file policies, and highlights supported syntax, limitations, and examples. Link labels, headings, and metadata were also updated.

What Defender admins need to know

No administrator action is required.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

WorkingWork with the RegExregular expression engine in Defender for Cloud Apps

This article provides instructionsMicrosoft Defender for using RegExCloud Apps supports regular expressions (RegEx) for pattern matching in Defendercontent inspection and file policies. Use the supported RegEx syntax, known limitations, and examples to build effective expressions for Cloud Appsyour policies.

Regular expressions in Defender for Cloud Apps

To test regular expressions, you can use the following websites:

Limitations of regular expressions in Defender for Cloud Apps

  • Disallowed back-references: \<number> or \k<name>

Example expressionsRegular expression examples

The following table gives you example expressions and if they would match or not.