Help with C++ Boost::regex
- by Youssef
Hello everybody,
I'm trying to get all words inside a string using Boost::regex in C++.
Here's my input :
"Hello there | network - bla bla hoho"
using this code :
regex rgx("[a-z]+",boost::regex::perl|boost::regex::icase);
regex_search(input, result, rgx);
for(unsigned int j=0; j
I only get the first word "Hello"..
whats wrong with my code ? result.size() returns 1.
thank you.