Article View: news.software.readers
Article #130503[Dialog] regular expression error?
From: OB1
Date: Sat, 09 Aug 2003 20:30
Date: Sat, 09 Aug 2003 20:30
25 lines
1986 bytes
1986 bytes
Hi,
having some problem with the regular expressions in Dialog.
I use reg.expressions in my scoring file, to score posts by subject prefix.
It looks to me like the regular expression check isn't working completely
as it should.
It gives a match on words in the middle of a string,if they are directly
behind a bracket (opening and closing alike), while it should only check
the first word.
For example(in the reg exp tester)
with the reg exp ^test:
i do a test on "test: this is a test"
this gives a match only on the first 'test', like it should
if you put a bracket before 'test' in the middle of the line, like this
"this is a )test" or "this is a (test"
then it gives a match on 'test', where it shouldn't.
Is this an error in the evaluation of regular expressions, or am i getting
it wrong?
--
OB1
Technical Details
Message-ID:
<139id9j26du0t.1ghsec2cszol6.dlg@40tude.net>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!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <139id9j26du0t.1ghsec2cszol6.dlg@40tude.net> Subject: [Dialog] regular expression error? Date: Sat, 09 Aug 2003 20:30:50 GMT From: OB1 <OB1@pandora.beLGIUM.INVALID> 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!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail Newsgroups: news.software.readers MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: OB1@pandora.beLGIUM.INVALID User-Agent: 40tude_Dialog/2.0.5.1 Lines: 24 NNTP-Posting-Host: 213.224.93.184 X-Complaints-To: abuse@telenet.be X-Trace: hestia.telenet-ops.be 1060461050 213.224.93.184 (Sat, 09 Aug 2003 22:30:50 CEST) NNTP-Posting-Date: Sat, 09 Aug 2003 22:30:50 CEST Organization: Telenet Internet