This is awful, but also a bit clever, if untested:
my $query = 'some text'; my $searchquery = join('\n?', split(//, $query)); $results = s/($searchquery)/highlight($1)/ge;
In reply to Re: highlight and line breaks
by chromatic
in thread highlight and line breaks
by glwtta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |