সম্পাদনা
#include <iostream> #include <string> #include <regex> using namespace std; int main() { std::string text = "প্রোগ্রামিং শিখুন - প্রোগ্রামিং দিয়ে আপনার ক্যারিয়ার গড়ুন"; std::regex pattern("\bপ্রোগ্রামিং\b"); for (std::sregex_iterator it(text.begin(), text.end(), pattern), end; it != end; ++it) { std::cout << it->str() << std::endl; } }
পূর্বরূপ