text: 0
  Hi guys, i'm trying to extract the data "Lady Gaga Fame Monster" from the html below using substr and find, but i wasn't able to retrieve the data.
  <div class="album-name"><strong>Album</strong> > Lady Gaga Fame Monster</div>
  I'm tried to extract the whole string first, but i can only extract till <strong>Album</strong> under the command cout << line_found , as there's spacing that prevents it from proceeding further.
  I try cout << extract_line . I see no spaces in the extracted html code.
  I tried the tutorial based from this, it works, even with spaces. I'm following closely but it stops extracting once it hit spaces. Pls help really appreciated. thanks. Figuring out 2 days without any solution.
  here's the source code:
  #include "parser.h" #include <stdlib.h> #include <iostream> #include <fstream> #include <string> #include <cstring> using namespace std; int main() { string line_found, extract_line, result,"); result = line_found.substr(firstPosition); } } return 0; }
  Edited by clement99: n/a