The stupid question is the question not asked | |
PerlMonks |
How do I match for several strings, matching the longest stringfirst?by g man (Initiate) |
on Apr 16, 2000 at 19:42 UTC ( [id://7769]=perlquestion: print w/replies, xml ) | Need Help?? |
g man has asked for the wisdom of the Perl Monks concerning the following question:
The following is a excerpt of text file:
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 node Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|