Search:

Type: Posts; User: cas

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    13,678

    You are completely overthinking this. ...

    You are completely overthinking this.


    regex_t re;
    char file[] = "hello777world99yew 8 I8909do23!";
    const char *p = file;
    regmatch_t match;

    if(regcomp(&re, "[0-9]+", REG_EXTENDED) != 0)...
  2. Replies
    4
    Views
    13,678

    regexec() will not find multiple instances of...

    regexec() will not find multiple instances of your parenthesized expression. There are multiple elements in pmatch because you can have multiple sets of parentheses, not for any other reason.
    ...
Results 1 to 2 of 2