remove using regular expression says:
Removes every occurrence of the regular expression regExp in the string and returns a reference to the string.
Code: Select all
QString str = "trombone";
str.remove(QRegularExpression("[aeiou].")); // str == "trmbne"