Writing Patterns with Wildcard Operators
A pattern (or a mask) is used for matching a given string of characters for "find" or "find and replace" operations, where some parts of the string are masked by wildcards. During run-time, these wildcard characters are evaluated to match the characters in the actual string.
Patterns may need to be written in several domain entries, such as the Forms M-to-M Converters (251) domain or the Form Fields Meta (255) domain.
In Docupace you may use two types of syntax: simplified Docupace wildcard syntax; or standard RegExp (Regular Expressions) syntax.
Simplified Docupace Wildcard Syntax
Symbol | Description | Example | Matching Entries |
---|---|---|---|
| Represents one or more characters |
|
|
| Represents one or two numeric characters |
|
|
| Standard regexp can be placed between brackets |
|
|
| Or place the entire standard regexp between these two symbols |
or
|
or
|
Regular Expressions (RegExp) Wildcard Syntax
To use standard RegExp strings for the pattern in Docupace, they must be placed between these two symbols ^...$, for example ^\d{1,2}ben\.(F|Full)Name$.
Some of the most used wildcards are listed below.
Symbol | Description | Example | Matching Entries |
---|---|---|---|
| The question mark indicates zero or one occurrence of the preceding element. |
|
|
| The asterisk indicates zero or more occurrences of the preceding element. |
|
|
| The plus sign indicates one or more occurrences of the preceding element. |
|
|
| The preceding item is matched exactly n times. |
|
|
| The preceding item is matched min or more times. |
|
|
| The preceding item is matched at least min times, but not more than max times. |
|
|
| The period matches any single character. |
|
|
| Represents a numeric character. |
|
|
| Represents a non-numeric character. |
|
|
| Represents an OR selector between several strings. |
|
|
| Parentheses are used to define the scope and precedence of the operators. |
|
|
| Represents any single character within the brackets |
|
|
| Matches every character except the ones inside brackets. |
|
|
Examples of Patterns from the Form Fields Meta (255) Domain
Example | Matching Entries |
---|---|
|
|
|
|
|
|