@igorrr37
1812 / 1430 / 214
Регистрация: 21.12.2010
Сообщений: 2,333
|
28.05.2012, 22:32
|
|
с пробелами можно так C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| #include <iostream>
#include <string>
#include <vector>
#include <boost/algorithm/string/regex.hpp>
int main()
{
std::wstring s(L"fisr ttt<br/>sec on;$x<br/>");
std::vector<std::wstring> v;
boost::algorithm::split_regex(v, s, boost::wregex(L"<br/>"));
for(auto const& val : v)
{
std::wcout << val << std::endl;
}
return 0;
} |
|
3
|