Depends a little on your existing code, but /\Q$matchStr\E/ probably does what you want.
Update: You might like to consider index too.
In reply to Re: How to disable Pattern Matching ?
by GrandFather
in thread How to disable Pattern Matching ?
by Coppiete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |