有文本如下, 怎么用正则表达式获取当的网址
��<br />
<br />
Gnomon Workshop: Production FX Workflows Dragon Age - Origins<br />
<br />
<br />
<br />
<img src="http://preview.filesonic.com/img/1396361.jpeg" border="0" alt="" /><br />
<br />
<br />
<b>Gnomon Workshop: Production FX Workflows Dragon Age - Origins</b><br />
<br />
English | VP6 1024x768 4:3 15 fps ~ 800kbps | MP3 22.05 kHz 1 ch 48 kbps | 2.42 GB<br />
<br />
<br />
<br />
Brandon Young presents his production FX workflow by reconstructing a shot from the Dragon Age: Origins cinematic created at Blur Studio. He goes over the shot breakdown, the goals of the shot and how to achieve them quickly. Brandon shows how to use Particle Flow, FumeFX and stock elements to make the effects shine. He then delves into rendering and compositing the effects elements into the actual production shot.<br />
<br />
Topics covered:<br />
<br />
Working Efficiently<br />
<br />
Breaking down the shot<br />
<br />
Blur Studio FX workflow<br />
<br />
Tools in 3dsmax<br />
<br />
Particle Flow<br />
<br />
FumeFX<br />
<br />
Fusion Compositing<br />
<br />
<br />
<br />
<b>Download:</b><br />
<br /> 
 
http://www.1ju.org/file/2027817/Gnomon_Production_FX_Workflows_Dragon_Age_Origins.part1.rarhttp://www.1ju.org/file/2027863/Gnomon_Production_FX_Workflows_Dragon_Age_Origins.part2.rarhttp://www.1ju.org/file/2027866/Gnomon_Production_FX_Workflows_Dragon_Age_Origins.part3.rarhttp://www.1ju.org/file/2028052/Gnomon_Production_FX_Workflows_Dragon_Age_Origins.part4.rarhttp://www.1ju.org/file/2028123/Gnomon_Production_FX_Workflows_Dragon_Age_Origins.part5.rarhttp://www.1ju.org/file/2029052/Gnomon_Production_FX_Workflows_Dragon_Age_Origins.part6.rarhttp://www.1ju.org/file/2028054/Gnomon_Production_FX_Workflows_Dragon_Age_Origins.part7.rar  <br />

解决方案 »

  1.   

    不一定是以RAR结尾的, 只要是网址就考虑提出来
      

  2.   

    \b((ftp|https?)://[-\w]+(\.\w[-\w]*)+|(?i:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+(?-i:com\b|edu\b|biz\b|gov\b|in(?:t|fo)\b|mil\b|net\b|org\b|[a-z][a-z]\b))(:\d+)?(/[^.!,?;"'<>()\[\]{}\s\x7F-\xFF]*(?:[.!,?]+[^.!,?;"'<>()\[\]{}\s\x7F-\xFF]+)*)?
    看到一个超复杂的
      

  3.   


    import java.util.regex.Matcher;
    import java.util.regex.Pattern;public class ExtractUrl { public static void main(String[] args) {
    String src = "......"; // 这里插入你要查询的文本
    String reg = "(http[s]?://[\\w\\.\\-/]+)";
    Pattern p = Pattern.compile(reg);
    Matcher m = p.matcher(src);
    while(m.find()) {
    System.out.println(m.group(1));
    }
    }}
      

  4.   

    (http[s]?://[\\w\\.\\-/]+)";正则表达式不怎么精确
      

  5.   

    (http[s]?://[\\w\\.\\-/]+) 正解