জয়েন লগইন

সি# [A-Z] রেজেক্স

🌈সি# [A-Z] রেজেক্স কি?

📋সি# [A-Z] রেজেক্স হলো বড় হাতের অক্ষর পরিসরে মিল খুঁজে বের করার পদ্ধতি।

⚒️সি# [A-Z] রেজেক্স বড় হাতের অক্ষর পরিসরে মিল খুঁজে বের করতে ব্যবহৃত হয়।

সি# [A-Z] রেজেক্স বড় হাতের অক্ষর পরিসরে মিল খুঁজে বের করার উদাহরণ।

csharp
using System;
using System.Text.RegularExpressions;
namespace MyApplication {
  class Program {
    static void Main(string[] args) {

    string text = "হ্যালো বিশ্ব";
    string pattern = "[A-Z]";

    foreach (Match match in Regex.Matches(text, pattern)) {
      Console.WriteLine(match.Value);
    }
    }
  }
}