in reply to Compare two arrays
You can escape metacharacters in regular expressions using \Q and \E. Have a look at quotemeta.