[C++] Get all characters after a certain place in a string?

Soldato
Joined
6 Jan 2005
Posts
3,633
Location
Cambridge
Hi, I've been looking on google for quite a while and can't really find out how to do this.

Basically let's say I have a string that says
Code:
Download: http://www.whatever.com/update.exe

I can find out the "Download: " part with
Code:
if(string(sReceived).find("Download: ") != string::npos)
            {
                cout << "Download Found";
            }

How can I get the "http://www.whatever.com/update.exe" part so I know what to download?

Thanks,
 
Back
Top Bottom