The \ character is probably being eaten by the regex engine. See quotemeta.
In reply to Re: pattern matching question by Fletch in thread pattern matching question by devlele