Answer the question
In order to leave comments, you need to log in
How to replace matches in regexp?
Everything is in this fiddle. There, my regular expression finds all the variables inserted into the string, and now I need to replace everything that it found with the values of real variables, what is the easiest way to do this? Since in my last question on stackoverflow everyone wrote using the template string, I’ll immediately say that it is necessary for the admin panel to write such expressions there and variables were substituted in them
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question