#MATL, 8 bytes
MATL, 8 bytes
'X&'''X&
Input is a string enclosed in single quotes. If the string contains a single-quote symbol, it should be duplicated to escape it.
###Explanation
Explanation
'X&''' % Push string with the three characters used by the program. The single-quote
% symbol needs to be escaped by duplicating it
X& % Take input implicitly. Set intersection. Display implicitly