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


On 01/09/2014 05:16 AM, vijay nag wrote:
> Ok. And the real question here is, why "*" cannot be used to match any
> string in extended regular expression whereas it works fine in basic
> regular expressions ?

I'll note that all of the BRE and ERE grammars and specs are in POSIX
Base Definitions Sec 9.3 and 9.4:

http://pubs.opengroup.org/onlinepubs/9699919799/nframe.html

Some of the reasons are more UNIX-historical in nature, rather than
carefully-plotted-out :-).


-- 
Mark Brown
ms_brown@sbcglobal.net


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