In yahoo pipes, how can I combine 2 fields?

给你一囗甜甜゛ 提交于 2019-12-08 07:41:13

问题


I am trying to modify a title of a rss field to include text from another field. How can I put these two fields together to make a new field? Thanks, CP


回答1:


You can combine two fields using the Regex operator, by using ${...} notation in the replacement pattern to refer to other fields.

For example, if you want to replace the title field with the combination of the pubDate and link fields, you could set the parameters like this:

  • In: item.title
  • replace: .*
  • with: ${pubDate} - ${link}

In the replace parameter I used .* to match the entire content of item.title, and in with ${pubDate} will be replaced with the content of item.pubDate, and ${link} with the content of item.link.

Some more examples and screenshots:

If you want to create a new field with the combination of others:

If you want to prepend something to an existing field:



来源:https://stackoverflow.com/questions/23398105/in-yahoo-pipes-how-can-i-combine-2-fields

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!