Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace strings in a specific field #71

Open
anewuser opened this issue Sep 9, 2020 · 2 comments
Open

Replace strings in a specific field #71

anewuser opened this issue Sep 9, 2020 · 2 comments

Comments

@anewuser
Copy link
Contributor

anewuser commented Sep 9, 2020

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

@onli
Copy link
Member

onli commented Sep 11, 2020

I think that's a good idea, yes.

@anewuser
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants