Escape a regexp special characters

Escape a characters that has special meaning inside a regular expression