Greetings dear {{name}}, hope the {{service}} is to your liking etc etc {{.....}} The object consists of 2 curlys on either side with text in the middle as shown.
What we need to do is if anyone of the curlys is deleted for an object (using backspace, delete etc),then the whole object i.e. the associated curlys and the text, the whole thing : {{name}} will be deleted. i.e the desired output will an emoty string.
We have looked at several regex constructs such as :
s.replace(/\s?\{+[^}]+\}+/g, ''); But they do not do what we need. Any assistance would be greatly appreciated.
Meta Ads Manager (Lead Gen - High Ticket Wellness Brand) Category: Advertising, Data Analysis, Digital Marketing, Facebook Ads, Facebook Marketing, Google Adwords, Internet Marketing, Lead Generation, Marketing Strategy, Sales Budget: $15 - $25 USD
30-Mar-2026 22:00 GMT
Bulk Telegram API Token Generator Category: API Development, C#, Programming, Cloud Computing, Docker, Linux, Perl, PHP, Python, Software Architecture, Telegram API Budget: $30 - $250 USD
30-Mar-2026 21:57 GMT
Lead-Gen Website Ad Campaign Category: Digital Marketing, Facebook Ads, Google Ads, Google Adwords, Instagram Ads, Internet Marketing, Search Engine Marketing (SEM), SEO Budget: £20 - £250 GBP