Skip to content
Snippets Groups Projects
Commit ef61d2ed authored by Andrew Cohen's avatar Andrew Cohen
Browse files

new wikipedia format

parent 118b0276
No related branches found
No related tags found
No related merge requests found
......@@ -44,15 +44,12 @@ try
idx=strfind(str,'div class="results-info"');
idx=idx(1);
str2=str(idx:end);
idx2=strfind(str2,'</div>');
idx2=idx2(1);
idx2=strfind(str2,'of <b>');
str3=str2(idx2+6:end);
idx3=strfind(str3,'</b>');
idx3=idx3(1);
nx=str3(1:idx3-1);
f=str2double(nx);
str2=str2(1:idx2);
[s1 s2]=regexp(str2,'[0-9 ,]+');
f=str2double(str2(s1(end):s2(end)));
catch
f=0;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment