in reply to Most specific pattern
IE, let's say you have regex "blah.*blah" and regex "blah".
And a string that matches both. I would say that the best match would be the first, because this has smaller odds of matching any given string of length n.
This seems to cover all cases to me. Where would this not be true?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Most specific pattern
by thor (Priest) on Jul 01, 2005 at 17:02 UTC | |
by jhourcle (Prior) on Jul 02, 2005 at 15:04 UTC |