Regex

Mark Brown ms_brown@sbcglobal.net
Thu Jan 9 15:09:00 GMT 2014


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



More information about the Libc-help mailing list