Method RepeatedGroups
RepeatedGroups(int, int, int, Func<char, bool>?, bool)
Creates a matcher that matches a short group of characters repeated consecutively, such as "121212" or "abab".
Declaration
public static PasswordMatcher RepeatedGroups(int minGroupLength, int maxGroupLength, int minRepeats, Func<char, bool>? charFilter, bool matchTrailingSeparator = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | minGroupLength | The minimum length of the repeated group (at least 2). |
| int | maxGroupLength | The maximum length of the repeated group. |
| int | minRepeats | The minimum number of times the group must occur (at least 2). |
| Func<char, bool> | charFilter | A filter that determines which characters the group can contain, or null to allow any character. |
| bool | matchTrailingSeparator | Whether a single separator character after the repeated group is also matched. |
Returns
| Type | Description |
|---|---|
| PasswordMatcher |