To keep "/", please add "\/"
$code =~ s/[^\/\w"':.;]//g; [download]
Cheers !
--VC
In reply to Re: RegEx Character Class by atemon in thread RegEx Character Class by Anonymous Monk