Min/Max Occurrences Operator {min,max}
This command is optional.
Indicates a minimum and maximum number of times that an expression should occur and must directly follow the expression quantified.
example
<FamilyName> = @RegEx("[A-Za-z]+"){1,2};
This command matches a minimum of one occurrence of a group of letters and a maximum of two occurrences of the group of letters.
This command follows the form:
- expression{min,} means that expression must occur at least min times. The min value must be followed by a comma and must be a whole number.
- expression{,max} means that expression must occur at most max times. The max value must be followed by a comma and must be a whole number.
- expression{min,max} means that expression must occur at least min times and at most max times. The min and max values must be whole numbers.
- The Min/Max operator must immediately follow the expression or group expression it is quantifying.
To use this command:
- Position the cursor where you want the command inserted.
- Double-click ({min,max}) in the Commands list. If you do not want a minimum or maximum number of occurrences, leave the appropriate field blank.
- Type a value for Min.
- Type a value for Max.
- Click OK.