I have a JSON string and am trying to remove all the special characters
(i.e. those defined by the regex [!@#$%^’&*(),.?":{}|<>]
)
from it.
Some of the jq expressions I've tried are as follows:
sub("[!@#$%^’&*(),.?":{}|<>]"; "")
sub("/[!@#$%^’&*(),.?":{}|<>]/g"; "")
sub("/\W|_/g"; "")
Can anybody help?