Hi, h <- "<html><p>Cat<sup>a</sup></p><p>Dog</p></html>" sub("<sup.*sup>","",h) see http://en.wikibooks.org/wiki/R_Programming/Text_Processing for more information. Regards!