A web page contains some data displayed by some columns and delimited by the tag "pre" "/pre" :
ColumnA ColumnB ColumnC ColumnD ColumnE
01/2050 1009.0 11 9
01/1950 1009.0 8
01/1850 1009.0 11 8 82
01/1750 1009.0 10 87
01/1650 1008.0 10 7 82
01/1550 1008.0 11 8 82
I get them with the following code
s = regexp(urlpage, '<PRE[^>]*>(.*?)</PRE>', 'tokens');
s = [s{:}]';
%token to rows (cell)
row = textscan(s{1}', '%s', 'delimiter', '\n');
but in this situation i don't know the value of all elements, I would like to read each of them, i tried with
splitstring = textscan(row{1}{r},'%s');
and with
splitstring = textscan(row{1}{r},'%s %f %d %d %d');
but the whitespace aren't detected! Such as in the second row i detect a {3x1 cell} not a {5x1 cell}.