Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
%
% Non Reg Exp way of doing it
%
sourceCode=urlread('http://www.news.google.com');
startInd=strfind(sourceCode,'<span class="titletext">');
headline=sourceCode(startInd(1)+24:startInd(1)+150);
headline=headline(1:strfind(headline,'</span>')-1)
%
%
assert(isequal(getTheNews,headline))
headline =
Obamacare will shrink workforce by 2 million, report says
headline =
Obamacare will shrink workforce by 2 million, report says
|
1160 Solvers
Back to basics 8 - Matrix Diagonals
782 Solvers
Detect a number and replace with two NaN's
178 Solvers
Calculate the height of an object dropped from the sky
165 Solvers
484 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!