QString temptext;
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
temptext = "{\blur6\fad(300,600)\fs70\pos(386,268)}монстры";
temptext.remove(QRegExp("{[^}]*}",Qt::CaseInsensitive,QRegExp::RegExp2));
qDebug()<<temptext;
qDebug()<<QString::fromLocal8Bit(temptext.toAscii());
Цитата
"{lur6ad(300,600)s70pos(386,268)}монстры"
"{lur6ad(300,600)s70pos(386,268)}монстры"
"{lur6ad(300,600)s70pos(386,268)}монстры"
Как победить?
Должно вывести "монстры"
Хмм... Вставило вывод криво, так будет понятней:
