
Regex or Javascript expert
- or -
Post a project like this40
£25/hr(approx. $33/hr)
- Posted:
- Proposals: 18
- Remote
- #4336846
- Awarded
Ranked #1 in Full Stack Development| Web Developer / Web Designer|Shopify| Wordpress & Woo-commerce| Wix| Webflow | Joomla| Big commerce |Drupal| SEO

♛ PPH No. #1 ♛ 21Years of Experience in Web Development , Web Designing, Magento , Shopify, WordPress , API Integration, Full-Stack Ruby on Rails Developer,AngularJS / Node.js


1550+ Projects (iOS | Android | Mac OS | Web | Win | BlockChain | IOT)

11688848506139120765801194801454975831116878311700053810971121184023921849685704720431





Description
Experience Level: Expert
If we have a sentence such as :
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.
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.

Hassan N.
100% (5)Projects Completed
5
Freelancers worked with
5
Projects awarded
39%
Last project
1 Jul 2020
Ireland
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Hello, Hassan,
do you have any deadline for this project?
Kind Regards,
Hristo -
do you have only this problem about Regex? Please let me know.
11230941123083
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies