Hi
Say I have a string "TopBanana"
What is the best way to split it into two strings "Top" and "Banana"
I tried with QRegExp but i dont think im using it correctly
Qt Code:
  1. QString s = QString("TopBanana");
  2.  
  3. QRegExp re = QRegExp("[A-Z}");
  4.  
  5. QStringList sl = s.split(re);
To copy to clipboard, switch view to plain text mode 

TIA

Graham