I have problem extracting a substring from a input. The input consists of ipaddress_url_date where each underscore character indicates a space.
I am using:
>>procStr=ip.substr(ip.find_first_of(" "), ip.find_last_of(" "));
to extract url from the input but it does not work and procStr ends up with url_date thought I am just trying to extract url. Whats wrong?