boost::regex patternexpression("\\W+",boost::regex_constants::icase|boost::regex_constants::normal); std::string stringa ("Dear %1244,{Customerid:D}hfsduihui{Customerid:D}sd u"); boost::sregex_token_iterator k(stringa.begin(), stringa.end(), patternexpression,0); boost::sregex_token_iterator l;
while(k != l) { std::string temp1 = *k; CString m_strConvertstring1(temp1.c_str()); AfxMessageBox(m_strConvertstring1); k++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)