সি++ . রেজেক্স
🌈সি++ . রেজেক্স কি?
📋সি++ . রেজেক্স হলো যেকোনো অক্ষর খুঁজে বের করার পদ্ধতি।
⚒️সি++ . রেজেক্স যেকোনো অক্ষর খুঁজে বের করতে ব্যবহৃত হয়।
সি++ . রেজেক্স যেকোনো অক্ষর খুঁজে বের করার উদাহরণ।
cpp
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main() {
std::string text = "এওই@#123";
std::regex pattern(".");
for (std::sregex_iterator it(text.begin(), text.end(), pattern), end;
it != end; ++it) {
std::cout << it->str() << std::endl;
}
}