I have a string and I want to remove any - ,( ,) ,& ,$ ,# ,! ,[ ,] ,{ ,} ," ,' from the beginning or end of the word. If it is between the words just ignore those.
Here is an example:
var $string = "Hello I am a string, and I am called Jack-Tack!. My -mom is Darlean."; I want the above text to be like this after a regex:
console.log("Hello I am a string and I am called Jack-Tack My mom is Darlean");