জয়েন লগইন

সি# \s রেজেক্স

🌈সি# \s রেজেক্স কি?

📋সি# \s রেজেক্স হলো ফাঁকা স্থান খুঁজে বের করার পদ্ধতি।

⚒️সি# \s রেজেক্স ফাঁকা স্থান খুঁজে বের করতে ব্যবহৃত হয়।

সি# \s রেজেক্স ফাঁকা স্থান খুঁজে বের করার উদাহরণ।

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

    string text = "প্রোগ্রামিং শিখুন - প্রোগ্রামিং দিয়ে আপনার ক্যারিয়ার গড়ুন";
    string pattern = @"\s";

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