طريقة System::Text::RegularExpressions::Regex::Matches

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

يحصل على جميع مطابقات الـ regex في السلسلة المعطاة عبر المطابقة المتكررة.

MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, int startat=0)
ParameterTypeالوصف
الإدخالconst String&السلسلة المدخلة.
startatintالفهرس للبدء بالمطابقة عنده.

ReturnValue

مجموعة جميع المطابقات التي تم العثور عليها.

انظر أيضًا

Regex::Matches(const String&, const String&, RegexOptions, TimeSpan, int, int) method

يحصل على جميع المطابقات بين السلسلة والنمط.

static MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout, int startat=0, int length=0)
ParameterTypeالوصف
الإدخالconst String&السلسلة المدخلة.
النمطconst String&نمط الـ Regexp.
خياراتRegexOptionsخيارات المطابقة.
matchTimeoutTimeSpanمهلة.
startatintMatch بداية الموضع.
الطولintعدد الأحرف التي يجب البحث خلالها (0 يعطل الحد).

ReturnValue

جميع المطابقات التي تم العثور عليها عبر المطابقة المتكررة.

انظر أيضًا