Method Text
Text(string, PasswordMatchType, bool, bool, bool)
Creates a matcher that matches a word or phrase, ignoring case and optionally allowing common character substitutions (such as "@" for "a").
Declaration
public static PasswordMatcher Text(string text, PasswordMatchType matchType = PasswordMatchType.Common, bool checkSubstitutions = true, bool matchRepeats = true, bool matchTrailingSeparator = true)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text to match. |
| PasswordMatchType | matchType | The type of match to report. |
| bool | checkSubstitutions | Whether common character substitutions are matched in place of the original characters. |
| bool | matchRepeats | Whether consecutive repeats of the matched text are also matched. |
| bool | matchTrailingSeparator | Whether a single separator character after the text is also matched. |
Returns
| Type | Description |
|---|---|
| PasswordMatcher |