日期:2014-05-20  浏览次数:20504 次

求救:求一正则表达式,急
哪位高人帮帮忙啊 将下面
<v:shape id="图片_x0020_0" o:spid="_x0000_i1026" type="#_x0000_t75"
 alt="woniu.gif" style='width:75pt;height:75.75pt;visibility:visible;
 mso-wrap-style:square'>
 <v:imagedata src="file:///C:\Users\wouniu\AppData\Local\Temp\msohtmlclip1\02\clip_image001.gif"
  o:title="woniu"/>

提取然后变成 <img src="file:///C:\Users\wouniu\AppData\Local\Temp\msohtmlclip1\02\clip_image001.gif"
width="75" height="75.75"/>

求救----------------------------------

------解决方案--------------------
<v:shape.*?width:(.*?)pt;height:(.*?)pt.*?<v:imagedata src=\"(.*[^\\"]+)\".*

group(1)就是width group(2)是height group(3)是地址 自己拼接就可以