export const escapeRegEx = (text: string): string => { return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); }; export default escapeRegEx;