what’s best solution using regex, to remove special characters from the begin and the end of every word.
“as-df– as-df- as-df (as-df) ‘as-df’ asdf-asdf) (asd-f asdf’ asd-f’ -asdf- %asdf%s asdf& $asdf$ +asdf+ asdf++ asdf””
the output should be:
“as-df– as-df- as-df (as-df) as-df asdf-asdf) (asd-f asdf’ asd-f’ asdf %asdf%s asdf& asdf asdf asdf++ asdf””
if the special character at the begin match with the end, remove it
i am learning about regex.
[only regex]
Gives:
Getting non-identical characters to work is tricker
(),[],{}