WHERE INSTR(input_string||'#', col||'#') <> 0
should work, but won't be efficient (can't use an index on col).