mtch.Groups["Value"].Valueপ্রয়োজন অনুসারে তথ্য আহরণের জন্য নামযুক্ত ম্যাচ ক্যাপচারগুলি (ডেটা ব্যবহারের জন্য ... ইত্যাদি) ব্যবহার করুন।
(?<Value>\d+) -- Get the digits
(?<Other>.+?) -- Capture all text, but minimal (greedy) capture
(?<Key>someword) -- til the keyword here.
যখন উপরে চালানো হয় ( সঙ্গে IgnorePatternWhiteSpaceঅন্যথায় মন্তব্যও মুছে এবং প্যাটার্ন যোগদানের যেমন এটি চালানোর জন্য (?<Value>\d+)(?<Other>.+?)(?<Key>someword)কোন Regex বিকল্প সহ ) প্রতিটি ডেটা / কী জোড়া জন্য তথ্য পায় এবং একটি একক ম্যাচে প্রতিটি আয়োজন করে।
ফলাফল
এখানে ফলাফল (আপনার দ্বিতীয় উদাহরণের জন্য) যা সমস্ত পৃথক ম্যাচে এবং তাদের গ্রুপে অন্তর্ভুক্ত এবং প্রতিটি ম্যাচে ক্যাপচারগুলি সরবরাহ করে:
Match #0
[0]: 43434˽of˽someword
["Value"] → [1]: 43434
→1 Captures: 43434
["Other"] → [2]: ˽of˽
→2 Captures: ˽of˽
["Key"] → [3]: someword
→3 Captures: someword
Match #1
[0]: 12˽anything˽someword
["Value"] → [1]: 12
→1 Captures: 12
["Other"] → [2]: ˽anything˽
→2 Captures: ˽anything˽
["Key"] → [3]: someword
→3 Captures: someword
Match #2
[0]: 2323˽new˽someword
["Value"] → [1]: 2323
→1 Captures: 2323
["Other"] → [2]: ˽new˽
→2 Captures: ˽new˽
["Key"] → [3]: someword
→3 Captures: someword
দৃশ্যত এখানে যা মিলছে:
