$var1 = quotemeta($var1); ...etc. [download]
In reply to Re: matching + character in a file by runrig in thread matching + character in a file by jalebie