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.
Data Analytics Testing Category: BigQuery, Business Intelligence, Data Analysis, Data Modeling, Data Warehousing, ETL, Redshift, Snowflake, SQL, Testing / QA Budget: ₹1500 - ₹12500 INR
21-Feb-2026 22:52 GMT
YouTube Vlog Editor Category: Adobe Premiere Pro, After Effects, Video Editing, Video Post Editing, Video Processing, Video Services Budget: $30 - $250 USD
Adaptive Resource Research Support Category: Customer Service, Customer Support, Data Analysis, Data Collection, Data Entry, Data Management, Report Writing, Research, Research Writing, Statistics Budget: $250 - $750 USD
Sci-Fi ARPG Development Category: 3D Animation, 3D Art, 3D Modelling, 3D Rendering, Game Design, Game Development, Unity, Unreal Engine Budget: $15 - $25 USD
21-Feb-2026 22:39 GMT
Realistic Mangonados Storybook Art Category: 2D Drawing, Art Consulting, Art Installation, Caricature & Cartoons, Digital Art, Illustration, Photoshop Budget: $250 - $750 USD