In my previous post, I have explained about Yahoo Pipes for combining multiple RSS feeds into one single feed in desired way.
Today, while improving our Tamil News, I was required to limit the number of characters in the description of the feed items.
The feed item description will be having HTML tags also. So blindly truncating the description after specified amount of characters will spoil the look and feel of the description.
To handle this scenario we can use RegEx module (Regular Expression) of the Yahoo pipe.
We need to fill the RegEx module as below.
In -item.description
replace-(?s)^(([^<]|<[^>]+>){400})(?(?<!\b)([^\b]*?)\b).*
with-$1$3
More Articles...
Shop at Rajamanickam.com | Trending: Birthday Gift Idea? | Free Quotes App
Get 3 useful ebooks for Rs 99 in India and $5.99 globally
Get a 50% commission | ChatGPT and and Google Gemini for Beginners
Tuesday, September 8, 2009
Search This Blog
Art of Talking to AI | Tech eBook | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment