/**
 * @since Last modified: 2024-07-10 16:03:35
 * @function clearRegx
 * @description Remove regex symbols from the string.
 * @param {string} data  - The string data.
 * @returns {string} - Return clear string.
 * @see {@link https://codepen.io/axui/pen/JjQoEOX|demo @ codepen}
 * @example
 * ax.clearRegx('i*l[ive]ho\me');
 * <!--return 'ilivehome'-->
 */
'use strict';
const clearRegx = (data: string) => data.replace(/[.*+?^${}()|[\]\\]/g, '');
export default clearRegx;
