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.
Reparar PC y Formateo Remoto Category: Computer Repair, Data Backup, TeamViewer, Technical Support, Troubleshooting Budget: $10 - $30 USD
06-Feb-2026 05:03 GMT
Product Image Generation with AI Category: AI (Artificial Intelligence) HW / SW, AI Content Creation, AI Image Editing, Generative AI, Graphic Design, Illustration, Image Processing, Photo Editing, Photoshop, Stable Diffusion Budget: ₹1500 - ₹12500 INR
06-Feb-2026 05:02 GMT
E-Commerce Website Indexing SEO Fix Category: Content Management System (CMS), Internet Marketing, Link Building, Magento, Search Engine Marketing (SEM), SEO, SEO Auditing, Website Optimization Budget: £20 - £250 GBP
Social Media Specialist Category: Brand Management, Content Creation, Content Strategy, Facebook Marketing, Graphic Design, Instagram Marketing, Social Media Management, Social Media Marketing, Video Editing Budget: $250 - $750 USD