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.
Colorful Homepage Redesign Category: Graphic Design, HTML, UI / User Interface, User Experience Research, User Interface / IA, Web Design, Web Development Budget: ₹1500 - ₹12500 INR
Basic Photo & Video Edits - 12/12/2025 05:48 EST Category: Adobe Lightroom, Adobe Premiere Pro, After Effects, Photo Editing, Photoshop, Video Editing, Video Production Budget: ₹12500 - ₹37500 INR
Maithili Language ProofReading Category: Content Writing, Language Tutoring, Microsoft Word, Proofreading, Technical Writing, Translation Budget: $2 - $8 USD
On-Call Video Editing Team Category: After Effects, Video Ads, Video Conferencing, Video Editing, Video Post Editing, Video Processing, Video Production, Video Services, Video Streaming, Videography Budget: $10 - $30 USD