System::Text::RegularExpressions::Regex::IsMatch method
Contents
[
Hide
]Regex::IsMatch(const String&, int) method
Matches regex against string.
bool System::Text::RegularExpressions::Regex::IsMatch(const String &input, int startat=0)
Parameter | Type | Description |
---|---|---|
input | const String& | Target string. |
startat | int | Beginning index. |
ReturnValue
True if string matches regex, false otherwise.
See Also
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.TeX for C++
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)
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. |
ReturnValue
True if match is found, false otherwise.
See Also
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.TeX for C++