I am building a bot in which I have to save some emails to a local folder. However, since there can be characters like “(”, “[”, “:”, “;”, and “\” in the mail subject, it is not getting saved.
I would like to use Regex to replace these special characters.
Can anyone provide me with a Regex expression so I can replace the special characters with “_” ??