How can I convert a string to a regular expression that matches itself in Perl?
I have a set of strings like these:
Enter your selection: Enter Code
To put Brad Gilbert's suggestion into an answer instead of a comment, you can use quotemeta function. All credit to him