QString
has a method remove
that takes a QRegExp
. It removes every occurrence of the regular expression.
Is there a way to remove only the first occurrence of the regular expression?
Answer to QString replace only first occurrence doesn't help. See comment from Akiva there.