1

I'm trying to replace like this:

"The price is {{price}}".replace(/\{{(.*?)\}}/, '$243')
//output: The price is $243

But whem I use something like $143, I got this: "The price is price43"

What is going on?

João Paulo
  • 6,300
  • 4
  • 51
  • 80

0 Answers0