Click or drag to resize

ConditionMethodsRegexMatches Method

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

Namespace:  NLog.Conditions
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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
true if the regular expression finds a match; otherwise, false.
See Also