QString question
-
[quote author="Andre" date="1314563158"]One way would be to use QString::replace(), use a QRegExp to find the characters/character sequences you mention, and replace them with "".[/quote]
"QString::remove()":http://doc.qt.nokia.com/4.7-snapshot/qstring.html#remove would be equivalent, too. You also might consider the possibility of using "QString::simplified()":http://doc.qt.nokia.com/4.7-snapshot/qstring.html#simplified to cull out a lot of extraneous white space first, if it would help in building your QRegExp.
-
Hi ,
U can use the RegExp and String.simplified() also.