System::Text::RegularExpressions::Regex::Match method
محتويات
[
يخفي
]Regex::Match(const String&) method
يطابق التعبير النمطي مع السلسلة.
MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input)
| معامل | نوع | الوصف |
|---|---|---|
| الإدخال | const String& | السلسلة الهدف. |
ReturnValue
Match value containing match status and submatches.
انظر أيضًا
- Typedef MatchPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++
Regex::Match(const String&, int, int) method
يطابق التعبير النمطي مع السلسلة.
MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, int startat, int length=0)
| معامل | نوع | الوصف |
|---|---|---|
| الإدخال | 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.Font 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)
| معامل | نوع | الوصف |
|---|---|---|
| الإدخال | const String& | سلسلة الإدخال. |
| pattern | const String& | نمط التعبير النمطي. |
| الخيارات | 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.Font for C++