Try modifying the regex to
if ( my ($name) = $line =~ />(.*$search[^<]*)/ ){In reply to Re^8: Print word from text file that is not an exact match
by poj
in thread Print word from text file that is not an exact match
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |