সি++ \s রেজেক্স
🌈সি++ \s রেজেক্স কি?
📋সি++ \s রেজেক্স হলো ফাঁকা স্থান খুঁজে বের করার পদ্ধতি।
⚒️সি++ \s রেজেক্স ফাঁকা স্থান খুঁজে বের করতে ব্যবহৃত হয়।
সি++ \s রেজেক্স ফাঁকা স্থান খুঁজে বের করার উদাহরণ।
cpp
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main() {
std::string text = "প্রোগ্রামিং শিখুন - প্রোগ্রামিং দিয়ে আপনার ক্যারিয়ার গড়ুন";
std::regex pattern("\s");
for (std::sregex_iterator it(text.begin(), text.end(), pattern), end;
it != end; ++it) {
std::cout << it->str() << std::endl;
}
}