bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: empty regular expressions don't work on the BSDs


From: Andreas Vögele
Subject: Re: empty regular expressions don't work on the BSDs
Date: Sun, 30 May 2004 10:07:05 +0200

Kevin Ryde writes:

Another option would be to handle empty REs in string-match.

I think it could follow the libc, as long as it doesn't crash.

Yes. In practice empty regular expression aren't common anyway.

Henry Spencer's regcomp doesn't crash if the regular expression is empty. Instead the error code REG_EMPTY is returned. POSIX doesn't define REG_EMPTY but the RE grammar presented in the POSIX specification doesn't seem to allow empty REs either. See http://www.opengroup.org/onlinepubs/009695399/basedefs/ xbd_chap09.html#tag_09_05





reply via email to

[Prev in Thread] Current Thread [Next in Thread]