一个简单的matlab程序 获取阿奎罗jpg
- % copyright by fantuanxiaot
- % 一个简单的程序 获取阿奎罗jpg
- clc
- clear
- str=urlread('http://www.desktopsky.com/tiyubizhi/4356.html');
- aguero_plotcell_1=regexp(str,'http://[\w.-?-/\\]+\.((?:gif)|(?:bmp)|(?:png)|(?:jpg))','match');
- % 获取几张图片
- for i=1:length(aguero_plotcell_1)
- urlwrite(aguero_plotcell_1{i},['MyAguero',num2str(i),aguero_plotcell_1{i}(end-3:end)]);
- end
- % 或者
- % aguero_plotcell_3=regexp(str,'http://[A-z_0-9.\\\-/=?]+\.((?:gif)|(?:bmp)|(?:png)|(?:jpg))','match');
一个获取网页jpg格式的试用
本帖隐藏的内容
- clc
- clear all
- str1='http://a---sasdasd??/\-=jfhr.jpg';
- regexp(str1,'http://[\w.=?\\/\-]+\.((?:gif)|(?:bmp)|(?:png)|(?:jpg))','match')
- regexp(str1,'http://[\w.-?-/\\]+\.((?:gif)|(?:bmp)|(?:png)|(?:jpg))','match')
- regexp(str1,'http://[A-z_0-9.\\\-/=?]+\.((?:gif)|(?:bmp)|(?:png)|(?:jpg))','match')