This is the mail archive of the cygwin mailing list for the Cygwin 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: cygwin/regex is non-POSIX

> * U-DHX98431\sthoenna <> [2004-01-19 12:13:58 -0800]:
> On Mon, Jan 19, 2004 at 01:54:06PM -0500, Sam Steingold <> wrote:
>> > * Yitzchak Scott-Thoennes <> [2004-01-17 21:04:50 -0800]:
> That's cute.  But what if a real address matches a rot13'd one?

rot13({top-level-domain}) does not intersect {top-level-domain}.
I find these "anti-email-address-harvesting efforts" to be hurting the
legitimate users more than they hamper spammers (but let us not start
this here)

>> > Also, it says backrefs part of basic regular expressions but not
>> > exteneded ones.  From your mention of | I assume you are using
>> > REG_EXTENDED.  If REG_EXTENDED|REG_BACKR allows backrefs, it doesn't
>> > appear to be documented.
>> I am not sure what you mean here.  I would like to interpret your words
>> as follows, so that I can agree with you:
>> <>
>> does not mention REG_BACKR, so it's mere presence can probably be
>> contrued as a violation of the standard (unless it is enabled whenever
>> REG_EXTENDED is).  REG_BACKR is also not mentioned in "man regex", so
>> it is not documented.  Right?
> I was saying xbd_chap09 (my local copy, haven't rechecked the online
> one for any changes, but don't expect any) says back references are
> only available if you *don't* say REG_EXTENDED (or at least that's my
> reading of it).  The regex package doc (man 3 regex, man 7 regex) also
> discourage using them even then.

Oops, you appear to be correct - I was caught in the assumption that
ERE cannot offer less functionality than BRE which is supported by
gnulib & glibc implementations of regexp.  sorry.

but _WHY_ do ERE preclude back-references?!

>> Finally, a common extension appears to be the use or "?" after a
>> repetition specification to mean non-greedy matching, e.g.
>> "a+?" will match only the first "a" in "aaaa".
> You want the pcre packages then (pcre and pcre-devel).

no, not really.

Sam Steingold ( running w2k
<> <> <>
<> <>
PI seconds is a nanocentury

Unsubscribe info:
Problem reports:

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