সম্পাদনা
#include <iostream> #include <string> #include <regex> using namespace std; int main() { std::string text = "হ্যালো বিশ্ব"; std::regex pattern("[a-z]"); for (std::sregex_iterator it(text.begin(), text.end(), pattern), end; it != end; ++it) { std::cout << it->str() << std::endl; } }
পূর্বরূপ