I think he is right, couldn't it be?
```
    const char * cDomain;
    regex_t r;
    bool matched;  
  
    cDomain = domain->UTF8Characters();
    match = String::stringWithUTF8Format("^%s$", match->UTF8Characters());
    matched = false;

    if (regcomp(&r, match->UTF8Characters(), REG_EXTENDED | REG_ICASE | REG_NOSUB) != 0){
        return matched;
    }
    
    if (regexec(&r, cDomain, 0, NULL, 0) == 0) {
        matched = true;
    }
    
    regfree(&r);
    
    return matched;
```