IsMatch()

Regex::IsMatch(const String&, int) method

Matches regex against string.

bool System::Text::RegularExpressions::Regex::IsMatch(const String &input, int startat=0)

Arguments

ParameterTypeDescription
inputconst String&Target string.
startatintBeginning index.

Return Value

True if string matches regex, false otherwise.

Regex::IsMatch(const String&, const String&, RegexOptions, TimeSpan, int) method

Checks if string matches pattern.

static bool System::Text::RegularExpressions::Regex::IsMatch(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout, int startat=0)

Arguments

ParameterTypeDescription
inputconst String&Input string.
patternconst String&Regexp pattern.
optionsRegexOptionsMatching options.
matchTimeoutTimeSpanTimeout.
startatintMatch beginning position.

Return Value

True if match is found, false otherwise.

See Also