[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch #4604] Fix left anchors and -w problems
From: |
Tony Abou-Assaleh |
Subject: |
Re: [patch #4604] Fix left anchors and -w problems |
Date: |
Wed, 9 Nov 2005 23:42:43 -0400 (AST) |
> > + * src/search.c (EGexecute): Consider all patterns if many and,
> > + for an exact match, return the best one (leftmost, then longest).
> Now that I understand you, we need to determine whether returning the first
> pattern that matches was accidental or intentional behaviour.
I think the rule is: leftmost-longest match, no? (basically same as what
Charles wrote.)
TAA
-----------------------------------------------------
Tony Abou-Assaleh
Lecturer, Computer Science Department
Brock University, St. Catharines, ON, Canada, L2S 3A1
Office: MC J215
Tel: +1(905)688-5550 ext. 5243
Fax: +1(905)688-3255
Email: address@hidden
WWW: http://www.cosc.brocku.ca/~taa/
----------------------[THE END]----------------------
[patch #4604] Fix left anchors and -w problems, Charles Levert, 2005/11/09