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.
Garage Conversion Drawings Category: 2D Drafting, Building Design, Building Information Modeling, Building Regulations, Home Design Budget: £250 - £750 GBP
Vibrant Dropshipping Store Redesign Category: ECommerce, Graphic Design, HTML, UI / User Interface, Web Design, Web Development, Website Optimization Budget: ₹600 - ₹1500 INR
12-Mar-2026 10:55 GMT
3D Mechanical Part Modeling Category: 3D CAD, 3D Design, 3D Drafting, 3D Modelling, 3D Printing, 3D Rendering, AutoCAD, CAD / CAM, Mechanical Engineering, Solidworks Budget: ₹600 - ₹650 INR
Scientific Literature Review Expert Needed Category: Data Analysis, Report Writing, Research, Research Writing, Scientific Research, Scientific Writing, Writing Budget: $30 - $250 AUD
12-Mar-2026 10:51 GMT
Backend & CMS for single page website Category: Backend Development, CMS, Database Management, HTML, MySQL, PHP, Web Development, WordPress Budget: €250 - €750 EUR
12-Mar-2026 10:48 GMT
Google Ads Setup & Coaching Category: Advertising, Digital Marketing, Google Ads, Google Adwords, Google Analytics, Internet Marketing, PPC Marketing, Sales, SEO, Social Media Marketing Budget: £60 - £250 GBP