 | 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
Syntaxpublic 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 = RegexConditionMethods.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:
Boolean if the regular expression finds a match; otherwise,
.
See Also