সি# [a-zA-Z] রেজেক্স
🌈সি# [a-zA-Z] রেজেক্স কি?
📋সি# [a-zA-Z] রেজেক্স হলো পরিসর ব্যবহার করে অক্ষর শ্রেণির মিল খুঁজে বের করার পদ্ধতি।
⚒️সি# [a-zA-Z] রেজেক্স পরিসর ব্যবহার করে অক্ষর শ্রেণির মিল খুঁজে বের করতে ব্যবহৃত হয়।
সি# [a-zA-Z] রেজেক্স পরিসর ব্যবহার করে অক্ষর শ্রেণির মিল খুঁজে বের করার উদাহরণ।
csharp
using System;
using System.Text.RegularExpressions;
namespace MyApplication {
class Program {
static void Main(string[] args) {
string text = "হ্যালো বিশ্ব";
string pattern = "[A-Za-z]";
foreach (Match match in Regex.Matches(text, pattern)) {
Console.WriteLine(match.Value);
}
}
}
}