#include <iostream>
#include <regex>
#include <string>

int main() {
    std::string text = "Hello, my number is 12345 and my email is example@example.com";
    std::regex number_regex("\\d+"); // الگوی برای یافتن اعداد

    std::smatch match;
    if (std::regex_search(text, match, number_regex)) {
        std::cout << "Found number: " << match.str() << std::endl;
    }

    return 0;
}