how to remove "\" symbol in url
am having url inside tat url i want to remove special symbols like("\")
i used str.remove("\" ");
its not working..
this was my url
"http:\/\/103.3.229.181\/digital-photo-frame-ads\/public\/uploads\/07032015\/qzms7p5nfcza55539.jpg"
can any one give me suggestion for this to remove "\" symbol :confused:
Thanks in advance:o
Re: how to remove "\" symbol in url
In C++ backslash needs to be escaped by another backslash.
Re: how to remove "\" symbol in url
thank you i got answer by using this code
str.remove(QRegExp(QString::fromUtf8("[-`~!@#$%^&*()_—+=|;<>«»,.?{}\'\"\\\[\\\]\\\\]")));
Quote:
Originally Posted by
wysota
In C++ backslash needs to be escaped by another backslash.
Re: how to remove "\" symbol in url
I don't think removing that much is a good idea.
Re: how to remove "\" symbol in url
i got perfect url while using above code
"http://103.3.229.181/digital-photo-frame-ads/public/uploads/07032015/qzms7p5nfcza55539.jpg"
"http://103.3.229.181/digital-photo-frame-ads/public/uploads/07032015/srtsxvvopmu796070.png"
"http://103.3.229.181/digital-photo-frame-ads/public/uploads/07032015/qlk7ajrnkh8z82910.png"
i have doubt on this..using this link i want to download images can you give me suggestion for this???
Thanks in Advance
Re: how to remove "\" symbol in url
Quote:
Originally Posted by
iswaryasenthilkumar
i got perfect url while using above code
Great, what if the url is of the form: "http://my-example.com/~username/some_document%20with%20spaces?image_path=img@1&fmt =png"?
Re: how to remove "\" symbol in url
sorry wysota i dont have that much knowledeg to rectify what you asked:(
Quote:
Originally Posted by
wysota
Great, what if the url is of the form: "http://my-example.com/~username/some_document%20with%20spaces?image_path=img@1&fmt =png"?
Re: how to remove "\" symbol in url
You don't have to rectify anything. Just use a JSON parser to parse your image list.