find_all_regex
- Posted at 2006/08/03 15:02
- Filed under 프로그래밍/boost
정규식은 이메일 추출용
#include <boost/algorithm/string/regex.hpp> //find_all_regex
vector<string> tokens;
regex rx("[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)+");
find_all_regex( tokens, tmp, rx );
for(int i=0; i<tokens.size(); ++i)
m_ctrlListBox.AddString(tokens[i].c_str());
Posted by philosup
- Tag
- regex
- Response
- No Trackback , No Comment

