Hi,
Word boundary regular expression matching (\b \< \>) does not
work with POSIX.2 regex functions in cygwin (#include ).
It works fine using Linux.
Here is a simple test case to easily reproduce the problem:
$ cat regex-bug.c
int main()
{
regex_tr;
regmatch_t pmatch[2];
if (regcomp(
Bleah. #include statements were missing in my
previously posted sample test case. Here
is the test case again with #include statements
this time:
$ cat regex-bug.c
#include
#include
#include
int main()
{
regex_tr;
regmatch_t pmatch[2];
if (regcomp(&r, "\\bfoobar\\b", REG_EXTENDED)
2 matches
Mail list logo