|
Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006
Experts are coming to see it -
Recently, I find everywhere, or the lack of regular expression, and too complicated, but still a patchwork of writing HTML identify themselves to the expression : Photo Link Lane address, please help me to see if there are any problems crop -
[code]/ ((Http : (\/\/|\\\\)) (((\w) +[.]|) (1, managers (net|com|cn|org|cc|tv) (((\/[\~]*|\\[\~]*) (\w) +) |[.] (\w) +) * (\w) +[.]{1} (gif|jpg|png|JPG|GIF|PNG)) [/code]
Usually use are still very good, and can identify them. But sometimes not. Do not know what. The following paragraph is the HTML
[code]src=\ "Http : //image2.sina.com.cn/ent/h/p/2005-11-24/U1363P28T3D906327F326DT20051124114123_small_h.jpg\ "border=\" 1994-2000 "/></a></td>" td align=\ "center\" width=\ "187\" "<a href=\" http : //ent.sina.com.cn/h/p/2005-11-24/1141906328.html\ "target=\" _blank\ "and" various factions src=\ "http : //image2.sina.com.cn/ent/h/p/2005-11-24/U1363P28T3D906328F326DT20051124114139_small_h.jpg\ "border=\" 1994-2000 "/></a></td>[/code]
U1363P28T3D906327F326DT20051124114123_small_h.jpg lines of code only to find that the pictures, and the second to find pictures, I looked at for a long time but do not know what are the reasons. Please correct me on January 2-master
Synopsis : If the code only [color=red] //image2.sina.com.cn/ent/h/p/2005-11-24/U1363P28T3D906328F326DT20051124114139_small_h.jpg so they can find out the truth was that the Eastern-engage faint ~[/color] |
Try this now (which I did not judge the \\ network, add bar) :
[code]
/http (S?) : \/\/ (([\w\.-]+\/) +) ([\w\.-]+) \. (Gif|jpg|png) /gi
[/code] |
|