594 |
regex.translate = case_fold; |
regex.translate = case_fold; |
595 |
|
|
596 |
{ |
{ |
597 |
const char *const PAT = "\\<((PR[ \t/])|([-a-z0-9_+.]+)/)([0-9]+)"; |
const char *const PAT = "\\<((PR[ \t/])\\|([-a-z0-9_+.]+)/)([0-9]+)"; |
598 |
re_compile_pattern (PAT, strlen (PAT), ®ex); |
re_compile_pattern (PAT, strlen (PAT), ®ex); |
599 |
} |
} |
600 |
i = re_match (®ex, headerValue, strlen (headerValue), 0, ®s); |
i = re_search (®ex, headerValue, strlen (headerValue), 0, |
601 |
|
strlen (headerValue), ®s); |
602 |
regex.translate = NULL; |
regex.translate = NULL; |
603 |
regfree (®ex); |
regfree (®ex); |
604 |
re_set_syntax (old_syntax); |
re_set_syntax (old_syntax); |
605 |
|
|
606 |
if (i <= 0) |
if (i < 0) |
607 |
{ |
{ |
608 |
return NULL; |
return NULL; |
609 |
} |
} |