Using Regular Expressions in Banyan

How to use Regular Expressions (Regex) in Banyan’s Command Center

  • Updated on Jun 07, 2023

Regular Expression Overview

A regular expression (regex) is a sequence of characters that specifies a search pattern in text. Banyan uses regexes to match defined inputs that an admin can enter in various fields in the Command Center. Such fields can include Trust Factor configuration pages, such as App Check, File Check, Property List Check, etc.

How Regular Expression Works

To start a regular expression in a text input field within the Command Center, first enter the forward slash ( / ) symbol, followed by the regex string, and end with another forward slash.

Regexes within Banyan are case insensitive and multiline matched (equivalent to to “i” and “m” flags).

Our Recommendations

  • When the value of the input isn’t a static value, then it’s recommended to use regexes to support dynamic inputs (e.g., a value that changes based on user and device).

Can’t find what you’re looking for?

We’re happy to help. Contact our team.