pipes-digital / pipes

Repository for Pipes
https://pipes.digital
GNU Affero General Public License v3.0
254 stars 21 forks source link

Replace strings in a specific field #71

Open anewuser opened 3 years ago

anewuser commented 3 years ago

Could you add a search in fields option to replace blocks? Existing blocks could have all by default.

onli commented 3 years ago

I think that's a good idea, yes.

anewuser commented 2 years ago

Here's an example of a pipe that could be improved with this option: https://www.pipes.digital/pipe/59Vvzw9A

If I could parse only the item.content, this regex would be enough: /(<iframe.*?iframe>)|./i. However, since the Replace block forcibly affects titles too, I had to keep making the regex more complex to cover all titles in different blogs.