This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Regex
- From: Mark Brown <ms_brown at sbcglobal dot net>
- To: libc-help at sourceware dot org
- Date: Thu, 09 Jan 2014 09:09:44 -0600
- 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>
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