Answer the question
In order to leave comments, you need to log in
How to use c++ regular expressions?
string sText = text;
smatch nbiz;
smatch tbiz;
smatch obiz;
char numberbiz = regex_match(sText, nbiz, regex("{73B461}Номер бизнеса: {FFFFFF}(\\d+)"));
char tipbiz = regex_match(sText, tbiz, regex("{73B461}Тип бизнеса: {FFFFFF}(.+){73B461}Владелец:"));
char ownerbiz = regex_match(sText, obiz, regex("{73B461}Владелец: {FFFFFF}(\\w+_\\w+)"));
SF->getSAMP()->getChat()->AddChatMessage(-1, "Text: %s | %s | %s", nbiz[0], tbiz[0], obiz[0]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question