If you sort a list of the strings into an array, the deepest matches will be neighbors. That allows you to terminate the search after relatively few applications of japhy's excellent advice.
After Compline,
Zaxo
In reply to Re: Matching bits of 2 strings
by Zaxo
in thread Matching bits of 2 strings
by m2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |