g man has asked for the wisdom of the Perl Monks concerning the following question:
how would i match for the longest string first, then shorter string in the example of above i would want my program to print out lymph node as the tissue type in line 1 but lymph in line 2 i have a table of relevant terms to match to, but there are separate entries for lymph and lymph noderight lymph node lymph fluid
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I match for several strings, matching the longest string first?
by btrott (Parson) on Apr 16, 2000 at 22:14 UTC | |
|
Re: How do I match for several strings, matching the longest string first?
by chromatic (Archbishop) on Apr 17, 2000 at 01:42 UTC |