RegexUtils.IsMatch method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings
Assembly Skybrud.Essentials.dll

IsMatch(string, string, out Match)

Static

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

public static bool IsMatch(string input, string pattern, Match match)

Parameters

input String

The string to search for a match.

pattern String

The regular expression pattern to match.

match Match

The match.

Returns

true if the regular expression finds a match; otherwise, false.

IsMatch(string, string, RegexOptions, out Match)

Static

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

public static bool IsMatch(string input, string pattern, RegexOptions options, Match match)

Parameters

input String

The string to search for a match.

pattern String

The regular expression pattern to match.

options RegexOptions

A bitwise combination of the enumeration values that provide options for matching.

match Match

The match.

Returns

true if the regular expression finds a match; otherwise, false.

IsMatch(string, string, out MatchCollection)

Static

Indicates whether the specified regular expression finds any matches in the specified input string.

public static bool IsMatch(string input, string pattern, MatchCollection matches)

Parameters

input String

The string to search for matches.

pattern String

The regular expression pattern to match.

matches MatchCollection

The matches.

Returns

true if the regular expression finds any matches; otherwise, false.

IsMatch(string, string, RegexOptions, out MatchCollection)

Static

Indicates whether the specified regular expression finds any matches in the specified input string.

public static bool IsMatch(string input, string pattern, RegexOptions options, MatchCollection matches)

Parameters

input String

The string to search for matches.

pattern String

The regular expression pattern to match.

options RegexOptions

A bitwise combination of the enumeration values that provide options for matching.

matches MatchCollection

The matches.

Returns

true if the regular expression finds any matches; otherwise, false.