let cont = 'Hello,World!' const pattern = /[`~!@#$^\-&*()=|{}':;',\\\[\]\.<>\/?~!@#¥……&*()——|{}【】';:""'。,、?\s]/g cont = cont.replace(pattern, '') //HelloWorld