my $clauses = join "|", map {quotemeta} @SearchTexts; s{\b($clauses)\b}{<b>$1</b>}ig; [download]
In reply to Re: Regex of array by JavaFan in thread Regex of array by Anonymous Monk