System::Text::RegularExpressions::Regex::IsMatch method

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

Matches regex against string.

bool System::Text::RegularExpressions::Regex::IsMatch(const String &input, int startat=0)
ParameterTypeDescription
inputconst String&Target string.
startatintBeginning index.

ReturnValue

True if string matches regex, false otherwise.

See Also

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)
ParameterTypeDescription
inputconst String&Input string.
patternconst String&Regexp pattern.
optionsRegexOptionsMatching options.
matchTimeoutTimeSpanTimeout.
startatintMatch beginning position.

ReturnValue

True if match is found, false otherwise.

See Also