[Qt-interest] How do cut the Qstring
邵度
shao.tu at gmail.com
Thu Jun 18 07:42:00 CEST 2009
I think the simplest way is:
*mail*.split("@")[0].split(":")[1]
*mail* is the QString instance you want to extract.
2009/6/18 Yuvaraj R <yuvaraj at ongobiz.com>
> Hi
>
> I am having the QString like
>
>
> sip:username at roameio.com <sip%3Ausername at roameio.com>
>
>
> from the string i need username only... How can i get username only....
>
>
> Thanks
>
>
> Yuvaraj R
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090618/e77ad6da/attachment.html
More information about the Qt-interest-old
mailing list