#include <iostream>
#include <string>
#include <regex>
int main()
{
 std::string strr("1.0.0.0029.443");

    std::regex rgx("([0-9])");
    std::smatch match;

    while(regex_search(strr, match, rgx))
	{
	    std::cout << match[0] << std::endl;
	    strr = match.suffix();
	}
}