Article View: news.software.readers
Article #36139bug in slang regex code (used in slrn)
From: Tom Grydeland
Date: Wed, 17 Sep 1997 00:00
Date: Wed, 17 Sep 1997 00:00
22 lines
1107 bytes
1107 bytes
The regex library of slang (used in e.g. slrn) applies quantifiers incorrectly to parenthesised expressions. The regex ab\(cc\)* should match ab, abcc, abcccc, etc. Instead, it is interpreted as abc(c*), i.e. it matches abc, abcc, abccc, etc. The same applies to ?. As for +, it's difficult to tell, since (ab)+ and a(b+) matches the same strings (albeit not the same *portions* of these strings) Is there any hope of this being fixed? Is there any hope of getting alternation in the same library? -- //Tom Grydeland <Tom.Grydeland@phys.uit.no>
Technical Details
Message-ID:
<slrn61voh6.5c9.tom@mitra.phys.uit.no>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn61voh6.5c9.tom@mitra.phys.uit.no> Subject: bug in slang regex code (used in slrn) Date: Wed, 17 Sep 1997 00:00:00 +0000 From: tom@mitra.phys.uit.no (Tom Grydeland) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 273266101 Organization: University of Tromsoe, Norway Newsgroups: news.software.readers