QString documentation issue
Posted: Sat Nov 13 2021 7:22 pm
https://www.copperspice.com/docs/cs_api/class_qstring8.html#a8d651b901c43247c716f215e0eab5403
remove using regular expression says:
Removes every occurrence of the regular expression regExp in the string and returns a reference to the string.
You will note the "e" left on the end of the comment indicating what would be left.
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"