[Qt-interest] how to extract the number from QString

hakiim the dream hakiim35 at hotmail.com
Fri May 21 14:33:39 CEST 2010


Hi all, suppose that I have the string abc001. I have to seperate the characters from the numeric part so that I have abc and 001 seperated?Using QString::toInt() does not help to discriminate between a zero number and an alpha character since it returns both 0 for the alpha character and the integer 0.Thanks in advance. 		 	   		  
_________________________________________________________________
Windows Live: Arkadaşlarınız size e-posta gönderdiklerinde Flickr, Twitter ve Digg'deki hareketlerinizi görürler.
http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:tr-tr:SI_SB_3:092010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100521/8e0b7fa2/attachment.html 


More information about the Qt-interest-old mailing list