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.
Construction Tender Administration Support Category: Construction, Construction Management, Microsoft Office, Microsoft Word, Project Management, Risk Management Budget: $8 - $15 AUD
11-Mar-2026 05:04 GMT
Invoice Data Input to Sheets Category: Data Analysis, Data Collection, Data Entry, Data Management, Data Processing, Excel, Google Sheets, PDF Budget: ₹750 - ₹1250 INR
11-Mar-2026 05:04 GMT
Realistic Alien & UFO Models Category: 3D Animation, 3D Art, 3D Design, 3D Graphic Design, 3D Modelling, 3D Rendering, 3D Visualization, 3ds Max Budget: €30 - €250 EUR
OCR Data Entry in Sheets Category: Adobe Acrobat, Data Entry, Data Extraction, Data Management, Data Processing, Excel, Google Sheets, PDF Budget: ₹750 - ₹1250 INR
11-Mar-2026 04:52 GMT
PDF to Google Sheets Migration Category: Data Analysis, Data Cleansing, Data Entry, Data Management, Data Processing, Excel, Google Sheets, Visual Basic Budget: ₹750 - ₹1250 INR