Regular Expressions

These are some common Regular Expressions (RegEx) we recommend to use within Nimbus. To test your own regular expressions please consider using this online tool: RegExr: Learn, Build, & Test RegEx. Using tools like ChatGPT can also prove quite effective in finding your desired outcome.

 

Description

Regular expression

Check perform on Fields and Parameters

Incoming Call is from an external PSTN number ^\+[1-9]\d{1,14}$
  • MicrosoftCallerId
Incoming call is from an internal Teams account (UPN) ^[^@]+@.+$
  • CallerUPN

Incoming number is from Germany/UK

  • Germany +49
  • UK +44

Check country code

^([+]49)\d+

^([+]44)\d+

  • MicrosoftCallerId
Caller is anonymous ^Anonymous
  • MicrosoftCallerId
The incoming call is from Switzerland OR Germany ^([+]49)|^([+]41)\d+
  • MicrosoftCallerId
The value equals 1 ^[1]$
  • Queue Position
  • Custom Parameter
The value equals 2 ^[2]$
  • Queue Position
  • Custom Parameter
The value equals or is greater than 3 ^[3-9]$|^([1-9]\d|[1-9]\d{2,})$
  • Queue Position
  • Custom Parameter
No user is available ^[0]$
  • Available Users
  • Custom Parameter
One or more users available ^[1-9]$|^([1-9]\d|[1-9]\d{2,})$
  • Available Users
  • Custom Parameter
The value is true ^(true|True|1)$
  • Custom Parameter
The value is not Empty ^.
  • Custom Parameter
The lenght of the string is in between 5 or 10 and not less or more ^.{5,10}$
  • Custom Parameter
The lenght of the string equals 3 ^.{3}$
  • Custom Parameter

🔎 Also refer to System Fields and Parameters for a comprehensive list on parameters handled by Nimbus.

Table of Contents