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.
Expert-Level Blog Post Category: Academic Writing, Article Rewriting, Article Writing, Blog, Blog Writing, Content Development, Content Writing, Copywriting, Research Writing, Technical Writing Budget: ₹600 - ₹1500 INR
12-Mar-2026 05:01 GMT
Word Workbook Formatting Polish Category: Business Writing, Content Writing, Copy Editing, Editing, Excel, Microsoft Office, Microsoft Word, PDF, Technical Writing, Word Budget: ₹750 - ₹1250 INR
12-Mar-2026 05:01 GMT
Twitter Follower Growth Expert Category: Analytics, Content Marketing, Digital Marketing, Facebook Marketing, Internet Marketing, Social Media Marketing, Twitter, Twitter Marketing Budget: ₹12500 - ₹37500 INR
Sales-Driven Facebook Marketing Category: Content Marketing, Copywriting, Data Analysis, Facebook Marketing, Google Adwords, Internet Marketing, Social Media Marketing, Visual Design Budget: ₹12500 - ₹37500 INR