Ruby, 81 78 68 66
for x in ?!..?~ if/[^for xin?!.~\/\\\[^\]=$><ed]/=~x $><<x end end Simply checks itself. Duplicate characters manually removed.
for x in ?!..?~ if/[^for xin?!.~\/\\\[^\]=$><ed]/=~x $><<x end end Simply checks itself. Duplicate characters manually removed.