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}$ |
|
Incoming call is from an internal Teams account (UPN) | ^[^@]+@.+$ |
|
Incoming number is from Germany/UK
Check country code |
^([+]49)\d+ ^([+]44)\d+ |
|
Caller is anonymous | ^Anonymous |
|
The incoming call is from Switzerland OR Germany | ^([+]49)|^([+]41)\d+ |
|
The value equals 1 | ^[1]$ |
|
The value equals 2 | ^[2]$ |
|
The value equals or is greater than 3 | ^[3-9]$|^([1-9]\d|[1-9]\d{2,})$ |
|
No user is available | ^[0]$ |
|
One or more users available | ^[1-9]$|^([1-9]\d|[1-9]\d{2,})$ |
|
The value is true | ^(true|True|1)$ |
|
The value is not Empty | ^. |
|
The lenght of the string is in between 5 or 10 and not less or more | ^.{5,10}$ |
|
The lenght of the string equals 3 | ^.{3}$ |
|
🔎 Also refer to System Fields and Parameters for a comprehensive list on parameters handled by Nimbus.