Daniel Elstner - 2012-06-19

Although not exactly intuitive, you can do this quite easily in the Perl regex itself: Just start the regex with "\Q" to have the engine interpret everything that follows literally. (Well, everything except for "\E", which would end the quoting.)