There are two ways (at least). You could run each tag through the $rreplace() function or you could take the final result and process it through $rreplace(). Doing each tag separately really only makes sense if you want to strip different characters from each tag. Building on my earlier script, the new one would look something like:
The pattern used for the $rreplace() in this case consists of a string of all the characters that you want removed, enclosed in square brackets. Note that some characters (e.g.: comma, left and right parentheses) must be escaped such as “\(”, “\)” or “\,” if they are included in the pattern. Left and right square brackets must be double escaped as “\\[” and “\\]”.
Note that some characters will be automatically replaced by Picard to avoid special characters used by your operating system’s file system. For example, on a Windoze system, the colon and backslash will be replaced automatically.