【发布时间】:2009-11-22 14:28:44
【问题描述】:
我有如下代码块:
<table border="0"><tr><td><img src='http://profile.ak.fbcdn.net/object3/686/9/q142163634919_249.jpg'/> </td><td>Gift of Life Marathon Blood Drive - "the group stood before a sea of 1,000 Long Trail Brewing Co. pint glasses..." (Rutland Herald, VT)</td></tr></table>
我需要查找并替换除 http://profile.ak.fbcdn.net/object3/686/9/q142163634919_249.jpg 之外的所有内容。所以最后,它应该只是 url。
唯一与循环不同的值是 url 和第二组 td 标记中的描述。描述中的字符数并不总是相同的。
我得到了 Regex Buddy,昨晚看了几个小时的参考网站。匹配单个字符似乎很简单,但我想我需要一段时间才能弄清楚。
我相信有不同类型的 RegEx。我正在使用的是 Yahoo Pipes,不确定它是什么类型:http://pipes.yahoo.com/pipes/pipe.edit?_id=436a316234281be629d357bbecae46b1
【问题讨论】:
标签: regex pipe yahoo-pipes