in reply to Regex of array

my $clauses = join "|", map {quotemeta} @SearchTexts; s{\b($clauses)\b}{<b>$1</b>}ig;