in reply to String similarity extraction

Careful; what you want to do isn't possible to do 100% huristicly. Consider a clan which has two members, SC|Adam, and SC|Alex. The clantag isn't SC|A, even though that's teh longest common substring, it's SC|, and they both happen to have names beginning with an A.

Also, consider SCSuperBot, SCMegaBot, and SCWackoBot. The clantag is SC, not Bot, or both, but the longest common substring is Bot.

Anyway, don't let this discourage you too much, I just wanted to note it.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).