s/\([^)]*\)//g #eliminate anything in parenthesis or s/\(([^)]*)\)/$1/g #remove matching parens but not the content #### s/[%*()]//g;