Function escapeRegExpCharacters