System::Text::RegularExpressions::Regex::Match طريقة
محتويات
[
يخفي
]Regex::Match(const String&) method
يطابق الـ regex مع السلسلة.
MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input)
| Parameter | Type | الوصف |
|---|---|---|
| الإدخال | const String& | السلسلة الهدف. |
ReturnValue
Match value containing match status and submatches.
انظر أيضًا
- Typedef MatchPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Page for C++
Regex::Match(const String&, int, int) method
يطابق الـ regex مع السلسلة.
MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, int startat, int length=0)
| Parameter | Type | الوصف |
|---|---|---|
| الإدخال | const String& | السلسلة الهدف. |
| startat | int | فهرس البداية. |
| الطول | int | عدد الأحرف للبحث عبرها (0 للبحث عبر السلسلة بأكملها). |
ReturnValue
Match value containing match status and submatches.
انظر أيضًا
- Typedef MatchPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Page for C++
Regex::Match(const String&, const String&, RegexOptions, TimeSpan, int, int) method
يطابق السلسلة والنمط.
static MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout, int startat=0, int length=0)
| Parameter | Type | الوصف |
|---|---|---|
| الإدخال | const String& | السلسلة المدخلة. |
| النمط | const String& | نمط الـ Regexp. |
| خيارات | RegexOptions | خيارات المطابقة. |
| matchTimeout | TimeSpan | مهلة. |
| startat | int | Match بداية الموضع. |
| الطول | int | عدد الأحرف التي يجب البحث خلالها (0 يعطل الحد). |
ReturnValue
أول تطابق تم العثور عليه.
انظر أيضًا
- Typedef MatchPtr
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Page for C++