Regexes can do this for you, for a reasonably small number of atomic words:<compound-word> := <word> <compound-word> <word> := word1 | word2 | ... | wordn
Alternatively, check out Aspell, as it has some support for compound words.my $compound = "onlinetrading"; my $words = 'online|trading'; my ($first, $second); if ($compound =~ /^($words)($words)$/) { $first = $1; $second = $2; } print "$first, $second\n";
-Mark
In reply to Re: Help Needed for Spellcheck
by kvale
in thread Help Needed for Spellcheck
by srik4u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |