This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Regex
- From: ÐÐÐÑÑ ÐÐÑÐÐ <pashev dot igor at gmail dot com>
- To: vijay nag <vijunag at gmail dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Thu, 9 Jan 2014 19:07:08 +0400
- Subject: Re: Regex
- Authentication-results: sourceware.org; auth=none
- References: <CAKhyrx-6xUawp0s96mANnwWaBsf2HheysAt0=wh4oDo1mySq4w at mail dot gmail dot com> <CALL-Q8wDpXCAbh+NgS3650hQ0HEtDdRqGMGBa2HNMLLmWEetpA at mail dot gmail dot com> <CAKhyrx_FpQd0eehL_4PDyit=X9E6686d4qWB7b+tbGh5SBXSrg at mail dot gmail dot com> <CALL-Q8xGv6J2uf2oSi52e4kht_GT_Z1r9t5ULPaVtSHaJ--91g at mail dot gmail dot com> <CAKhyrx8NRLhCke1ZVnfLYNz1hP9gDdwh3jynTxLpUH0_tdaTJQ at mail dot gmail dot com>
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 ?