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

Regex::Match(const String&) method

يطابق الـ regex مع السلسلة.

MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input)
ParameterTypeالوصف
الإدخالconst String&السلسلة الهدف.

ReturnValue

Match value containing match status and submatches.

انظر أيضًا

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

يطابق الـ regex مع السلسلة.

MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, int startat, int length=0)
ParameterTypeالوصف
الإدخالconst String&السلسلة الهدف.
startatintفهرس البداية.
الطولintعدد الأحرف للبحث عبرها (0 للبحث عبر السلسلة بأكملها).

ReturnValue

Match value containing match status and submatches.

انظر أيضًا

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)
ParameterTypeالوصف
الإدخالconst String&السلسلة المدخلة.
النمطconst String&نمط الـ Regexp.
خياراتRegexOptionsخيارات المطابقة.
matchTimeoutTimeSpanمهلة.
startatintMatch بداية الموضع.
الطولintعدد الأحرف التي يجب البحث خلالها (0 يعطل الحد).

ReturnValue

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

انظر أيضًا