in reply to Re: Re: next if attempt
in thread next if attempt
and to make it more accurate, one might write it as (untested:)
my @stopwords= qw/ car pet carpet /; my $stopmatch= join '|' => map { '\b' . $_[1] . '\b' } ## match full words reverse sort { $a->[0] <=> $b->[0] } ## longest first map { [length $_, $_] } @stopwords;
Thus longer words will match first, and only full words will be matched.
~Particle *accelerates*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: next if attempt
by Aristotle (Chancellor) on Jul 16, 2003 at 15:19 UTC | |
|
Re: Re^3: next if attempt
by hardburn (Abbot) on Jul 16, 2003 at 14:03 UTC | |
by particle (Vicar) on Jul 16, 2003 at 15:03 UTC |