This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regex


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(&regex, "*", REG_BASIC);

There is no REG_BASIC in glibc

> Vijays-MacBook-Pro:/Users/vinag]$ gcc -g -O0 regex.c

OS X ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]