| 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 = ""
)
Public Shared Function RegexMatches (
input As String,
pattern As String,
Optional options As String = ""
) As Boolean
Dim input As String
Dim pattern As String
Dim options As String
Dim returnValue As Boolean
returnValue = ConditionMethods.RegexMatches(input,
pattern, options)
static member RegexMatches :
input : string *
pattern : string *
?options : string
(* Defaults:
let _options = defaultArg options ""
*)
-> bool
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:
Booleantrue if the regular expression finds a match; otherwise, false.
See Also