I am using slre (<https://code.google.com/p/slre/>) for providing a regex library for a c program.

I want to match an IP address with following pattern: `"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"`

I get following compile error: Warning: unknown excape sequence '\.'
I also tried it with '\\.' --> the compile error is gone, but it's still saying it doesn't match.

```
   if (!slre_compile(&slre, settings[i].regex)) {
       printf("Error compiling RE: %s\n", slre.err_str);
   } 
   else if (!slre_match(&slre, settings[i].value, strlen(settings[i].value), captures)) {
       printf("\nSetting '%s' does not match the regular expression!", settings[i].internName);
   }

```

settings[i].regex is a char\* with the regular expression I mentioned above
settings[i].value is a char\*
the string I am trying to match is 8.8.8.8

Is there any other way to check for a dot?