'(?:' . join(')|(?:', @blacklist_words) . ')'
But, if the "words" can contain non-alphabetical characters with special meaning in regexes, you might need to map quotemeta to each word.
In reply to Re: Best approach to creating a regex from a filehandle
by choroba
in thread Best approach to creating a regex from a filehandle
by fieroboom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |