Skip to main content
3 of 5
added 18 characters in body
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20

#J, 18 bytes

  '''&()[-.'&([-.-.)

How it works

   ''&()[-.           the character set, '' stands for '
            &         is the left operand
             ([    )  the set> itself, ignore <the input
             (   -.)  the set> except any characters in <input 
                                      [the wrong ones remain]
             ( -.  )  the set itself> except <the wrong characters
FrownyFrog
  • 3.8k
  • 1
  • 14
  • 20