Scientists have designed a new class of antibiotic which seeks and destroys resistance genes in bacteria.