সি# [0-5] রেজেক্স
🌈সি# [0-5] রেজেক্স কি?
📋সি# [0-5] রেজেক্স হলো দুটি সংখ্যার মধ্যবর্তী মিল খুঁজে বের করার পদ্ধতি।
⚒️সি# [0-5] রেজেক্স দুটি সংখ্যার মধ্যবর্তী মিল খুঁজে বের করতে ব্যবহৃত হয়।
সি# [0-5] রেজেক্স দুটি সংখ্যার মধ্যবর্তী মিল খুঁজে বের করার উদাহরণ।
csharp
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);
}
}
}
}