QString s = "<i>Test:</i><img src=\"blah.png\" /><br> A test case"; s.remove(QRegExp("<[^>]*>")); // s == "Test: A test case"