【问题标题】:Rewrite image url in the RSS feed using Yahoo Pipes使用 Yahoo Pipes 重写 RSS 提要中的图像 url
【发布时间】:2012-11-18 15:44:21
【问题描述】:

我正在尝试使用此 Yahoo Pipe 在 Pinterest RSS 提要中显示全尺寸图像,而不是缩略图: http://pipes.yahoo.com/pipes/pipe.info?_id=4cc22a300ac57e4a88f908f0548ff79e

为了显示大图像,我需要为每个项目重写图像 URL,并将扩展前的最后一个符号从“b”更改为“c”,例如:

在原始 Pinterest RSS 中:http://pinterest.com/chalkboardnails/feed.rss

http://media-cache-ec6.pinterest.com/upload/90916486199089541_BOwL6p5P_b.jpghttp://media-cache-ec6.pinterest.com/upload/90916486199089541_BOwL6p5P_c.jpg

我怎么能这样做。 谢谢

【问题讨论】:

标签: regex url-rewriting pipe yahoo-pipes


【解决方案1】:

b试试(?<=http://.*/[A-Za-z\d]*_[A-Za-z\d]*_)(.*?)(?=\.jpg)

【讨论】:

    【解决方案2】:

    在 Yahoo Pipes 中使用 REGEX 函数:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多