ed2k\:\/\/\|file\|(.+)\|(\d+)\|([\dABCDEF]+)\|h\=(\w+)\|\/

解决方案 »

  1.   

    至于文件名中的中文字符,是用了utf-8字符集,每3个%DD之类的东东代表一个汉字,把%去掉分析成16进制数字,做一下转换就可以~~
      

  2.   

    preg_match_all('/ed2k\:\/\/\|file\|(.+?)\|(\d+?)\|(.+?)\|h=.+?\|\//isU',$str,$ar)
      

  3.   

    我到现在也看不明白这个正则。请两位达人给解释一下。------------------------------
    If you have read the regular expression in php manual, you will find it is not so difficult as you think.