Password Matcher Password Matcher
Password Matcher Password Matcher
DocFX + Singulink = ♥

Search Results for

    Method RepeatedChars

    RepeatedChars(Func<char, bool>?, bool)

    Creates a matcher that matches one or more consecutive occurrences of the same character.

    Declaration
    public static PasswordMatcher RepeatedChars(Func<char, bool>? charFilter, bool matchTrailingSeparator = true)
    Parameters
    Type Name Description
    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 repeated characters is also matched.

    Returns
    Type Description
    PasswordMatcher

    RepeatedChars(int, int, Func<char, bool>?, bool)

    Creates a matcher that matches between minCount and maxCount consecutive occurrences of the same character.

    Declaration
    public static PasswordMatcher RepeatedChars(int minCount, int maxCount, Func<char, bool>? charFilter, bool matchTrailingSeparator = true)
    Parameters
    Type Name Description
    int minCount

    The minimum number of repeated characters to match.

    int maxCount

    The maximum number of repeated 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 repeated characters is also matched.

    Returns
    Type Description
    PasswordMatcher
    © Singulink. All rights reserved.