#include <iostream>
#include <string>
#include <regex>
 
int main()
{
    std::string input = "+10.7% Is My String +5 And Some Extra Stuff Here";
    std::regex rx("\\+([0-9]+)\\.([0-9]+)% Is My String \\+([0-9]+) And Some Extra Stuff Here");

    std::smatch match;

    if (std::regex_match(input, match, rx))
    {
        for (std::size_t i = 0; i < match.size(); ++i)
        {
            std::ssub_match sub_match = match[i];
            std::string num = sub_match.str();
            std::cout << " submatch " << i << ": " << num << std::endl;
        }   
    }
}