QString str("USDCAD15");
QString str("USDCAD15");QString symbol;int period;sscanf(str,"%s%d",symbol,period);
C++ (Qt)int p = str.right(2).toInt();QString s = str.left(str.length() - 2);
C++ (Qt)QRegExp r("([a-z]+)([0-9]+)");r.indexIn(str); int p = r.cap(2).toInt();QString s = r.cap(1);