Regex
Игорь Пашев
pashev.igor@gmail.com
Thu Jan 9 15:07:00 GMT 2014
Probably, it is intended:
http://docs.freebsd.org/info/regex/regex.info.POSIX_Regular_Expression_Compiling.html
`REG_BADRPT'
For example, the consecutive repetition operators `**' in `a**'
are invalid. As another example, if the syntax is extended
regular expression syntax, then the repetition operator `*' with
nothing on which to operate in `*' is invalid.
This behavior is shared between glibc, illumos/opensolaris libc,
and as I can see on OS X :-)
2014/1/9 vijay nag <vijunag@gmail.com>:
> val = regcomp(®ex, "*", REG_BASIC);
There is no REG_BASIC in glibc
> Vijays-MacBook-Pro:/Users/vinag]$ gcc -g -O0 regex.c
OS X ?
More information about the Libc-help
mailing list