Page 1 of 1

QString documentation issue

Posted: Sat Nov 13 2021 7:22 pm
by seasoned_geek
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.

Code: Select all

QString str = "trombone";
str.remove(QRegularExpression("[aeiou]."));                       // str == "trmbne"
You will note the "e" left on the end of the comment indicating what would be left.

Re: QString documentation issue

Posted: Mon Nov 15 2021 5:41 am
by barbara
Thanks for catching this. Turns out the correct result is actually "trbe" since the "." in the regex will remove any character following a vowel. We are making the change in the API docs.