Method AnyChars
AnyChars(int, int, Func<char, bool>?, bool)
Creates a matcher that matches a short run of arbitrary characters, optionally limited to characters that pass a filter.
Declaration
public static PasswordMatcher AnyChars(int minLength, int maxLength, Func<char, bool>? charFilter, bool matchTrailingSeparator = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | minLength | The minimum number of characters to match. |
| int | maxLength | The maximum number of characters to match. |
| Func<char, bool> | charFilter | A filter that determines which characters can be matched, or null to match any character. |
| bool | matchTrailingSeparator | Whether a single separator character after the characters is also matched. |
Returns
| Type | Description |
|---|---|
| PasswordMatcher |