i split the strings below by the last / of the path:
html/body/div/div/table/tbody/tr/td/div/table/tbody/tr/td/table/tbody/tr/td/font/table/tbody/tr/td/p = Infoprat
html/body/div/div/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/a = 547 astuces Windows 95/98
html/body/div/div/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/p = Infoprat
and i got this result :
html/body/div/div/table/tbody/tr/td/div/table/tbody/tr/td/table/tbody/tr/td/font/table/tbody/tr/td
html/body/div/div/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/a = 547 astuces Windows 95
html/body/div/div/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td
but in the second line , because of a the / in 547 astuces Windows 95/98 , it didnt work. how can i ignore this / in 547 astuces Windows 95/98 ?
my code is :
line = line.substring(0,line.lastIndexOf("/"));
=followed by splitting with/on the first element of the array.