IsMatch()
Contents
[
Hide
]Regex::IsMatch(const String&, int) method
Matches regex against string.
bool System::Text::RegularExpressions::Regex::IsMatch(const String &input, int startat=0)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | Target string. |
startat | int | Beginning 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
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
pattern | const String& | Regexp pattern. |
options | RegexOptions | Matching options. |
matchTimeout | TimeSpan | Timeout. |
startat | int | Match beginning position. |
Return Value
True if match is found, false otherwise.
See Also
- Enum RegexOptions
- Class String
- Class Regex
- Class TimeSpan
- Namespace System::Text::RegularExpressions
- Library Aspose.Slides