THANKS for example!!!
Type: Posts; User: grytskiv
THANKS for example!!!
Ok, I write some code for get ALL numbers from string:
int error = 0;
regex_t re;
size_t a = 2;
regmatch_t arrayOfMatches[10];
int counter=0;
int *Matches;
How get all numbers by regex?
If I input string like "34df4354sdf234ds23", after regexec I get only:
submatch: 1
match 0: 34
How get something like this:
submatch: 4
match 0: 34