in reply to String similarity extraction

The examples you give use a non-word character as a delimeter. Is that always the case? If so,

my @name_parts = split /(\W)/, $name; my $clantag = exists $clanhash{$nameparts[0]} ? $nameparts[0] . $nameparts[1] : $nameparts[1] . $nameparts[2];
You may want to make a hash of the clantags in any case. You could then use index to find them in names.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: String similarity extraction
by Braindead_One (Monk) on Jan 11, 2003 at 19:15 UTC
    Sadly it isn't that easy.
    You'd be suprised how creative people can be if it gets to inventing a clantag ;)
    But nevertheless: Thank you