Method FixedDigits
FixedDigits(int, PasswordMatchType, bool, bool)
Creates a matcher that matches a fixed number of digits.
Declaration
public static PasswordMatcher FixedDigits(int numDigits, PasswordMatchType matchType, bool matchRepeats = true, bool matchTrailingSeparator = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | numDigits | The number of digits to match (between 1 and 9). |
| PasswordMatchType | matchType | The type of match to report. |
| bool | matchRepeats | Whether consecutive repeats of the matched digits are also matched. |
| bool | matchTrailingSeparator | Whether a single separator character after the digits is also matched. |
Returns
| Type | Description |
|---|---|
| PasswordMatcher |
FixedDigits(int, int, int, PasswordMatchType, bool, bool)
Creates a matcher that matches a fixed number of digits whose value falls within a range.
Declaration
public static PasswordMatcher FixedDigits(int numDigits, int minValue, int maxValue, PasswordMatchType matchType, bool matchRepeats = true, bool matchTrailingSeparator = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | numDigits | The number of digits to match (between 1 and 9). |
| int | minValue | The minimum value of the digits (inclusive). |
| int | maxValue | The maximum value of the digits (inclusive). |
| PasswordMatchType | matchType | The type of match to report. |
| bool | matchRepeats | Whether consecutive repeats of the matched digits are also matched. |
| bool | matchTrailingSeparator | Whether a single separator character after the digits is also matched. |
Returns
| Type | Description |
|---|---|
| PasswordMatcher |