Changed regexp syntax

This commit is contained in:
Michiel Broek 2002-05-09 09:29:55 +00:00
parent 103539250e
commit 8bf5b4a3a3
2 changed files with 4 additions and 4 deletions

View File

@ -138,8 +138,8 @@ int CheckHatch(char *temp)
case '.': *q++ = '\\'; *q++ = '.'; break; case '.': *q++ = '\\'; *q++ = '.'; break;
case '+': *q++ = '\\'; *q++ = '+'; break; case '+': *q++ = '\\'; *q++ = '+'; break;
case '*': *q++ = '.'; *q++ = '*'; break; case '*': *q++ = '.'; *q++ = '*'; break;
case '@': sprintf(q, "[:alpha:]"); while (*q) q++; break; case '@': sprintf(q, "[A-Za-z]"); while (*q) q++; break;
case '#': sprintf(q, "[:digit:]"); while (*q) q++; break; case '#': sprintf(q, "[0-9]"); while (*q) q++; break;
default: *q++ = *p; break; default: *q++ = *p; break;
} }
p++; p++;

View File

@ -144,8 +144,8 @@ int GetMagicRec(int Typ, int First)
case '.': *q++ = '\\'; *q++ = '.'; break; case '.': *q++ = '\\'; *q++ = '.'; break;
case '+': *q++ = '\\'; *q++ = '+'; break; case '+': *q++ = '\\'; *q++ = '+'; break;
case '*': *q++ = '.'; *q++ = '*'; break; case '*': *q++ = '.'; *q++ = '*'; break;
case '@': sprintf(q, "[:alpha:]"); while (*q) q++; break; case '@': sprintf(q, "[A-Za-z]"); while (*q) q++; break;
case '#': sprintf(q, "[:digit:]"); while (*q) q++; break; case '#': sprintf(q, "[0-9]"); while (*q) q++; break;
default: *q++ = *p; break; default: *q++ = *p; break;
} }
p++; p++;