<p>
this is a mp3 section</p>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="500" id="cke_multimedia139" name="cke_multimedia140" width="500"><param name="flashvars" value="file=http://192.168.118.82:81/lms_cp/userfiles/files/hotel_california.mp3&autostart=true" /><param name="movie" value="http://192.168.118.82:81/lll/userfiles/player.swf" /><param name="allowscriptaccess" value="always" /><param name="allowfullscreen" value="true" /><embed allowfullscreen="true" allowscriptaccess="always" bgcolor="#000000" flashvars="file=http://192.168.118.82:81/lll/userfiles/files/hotel_california.mp3&autostart=true" height="500" id="cke_multimedia141" name="cke_multimedia142" src="http://192.168.118.82:81/lll/userfiles/player.swf" width="500"></embed></object></p>
这是那个HTML页面的源代码,他的URL是http://192.168.118.82:8080/lsp/userfiles/GROUP_4028f69738a2cfd90138a2cfde2d0000/COURSE_0000000040c832f60140cdc923690026/CHAPTER_0000000040c832f60140cdcc6749002e/SECTION/a%20MP3.html
我想获得那个源代码里面那个MP3的地址,求指教!越详细越好!
java html url 解析
------解决方案--------------------
纠结一下午了吧 问我啊
------解决方案--------------------
上善
------解决方案--------------------
友情帮顶
------解决方案--------------------
字符串拆分,split file=
判断http开头,含有.mp3的那条
然后 split mp3
取第一条,拼装尾部加上mp3