XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I agree with a part of what jhourcle said above. The best fit would be the regex that matches, with the LEAST odds of matching.
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? In reply to Re: Most specific pattern
by tphyahoo
|
|