Click or drag to resize

RegexConditionMethodsRegexMatches Method

Indicates whether the specified regular expression finds a match in the specified input string.

Namespace:  NLog.Conditions
Assembly:  NLog.RegEx (in NLog.RegEx.dll) Version: 6.0.3+e276e1969a52b8ecc5cc84c1670a516efea0cb19
Syntax
public static bool RegexMatches(
	string input,
	string pattern,
	string options = ""
)

Parameters

input
Type: SystemString
The string to search for a match.
pattern
Type: SystemString
The regular expression pattern to match.
options (Optional)
Type: SystemString
A string consisting of the desired options for the test. The possible values are those of the RegexOptions separated by commas.

Return Value

Type: Boolean
if the regular expression finds a match; otherwise, .
See Also