The examples you give use a non-word character as a delimeter. Is that always the case? If so,
You may want to make a hash of the clantags in any case. You could then use index to find them in names.my @name_parts = split /(\W)/, $name; my $clantag = exists $clanhash{$nameparts[0]} ? $nameparts[0] . $nameparts[1] : $nameparts[1] . $nameparts[2];
After Compline,
Zaxo
In reply to Re: String similarity extraction
by Zaxo
in thread String similarity extraction
by Braindead_One
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |