সম্পাদনা
using System; using System.Text.RegularExpressions; namespace MyApplication { class Program { static void Main(string[] args) { string text = "a1b2c3"; string pattern = "[2-5]"; foreach (Match match in Regex.Matches(text, pattern)) { Console.WriteLine(match.Value); } } } }
পূর্বরূপ