here is my string
var text = "Lorem ipsum dolor *https://www.google.com/* amet, *https://www.google.com/*";
I would like to create new one like this
var newText = "Lorem ipsum dolor <a href="https://www.google.com/">https://www.google.com/</a> amet, <a href="https://www.google.com/">https://www.google.com/</a>";
My script not works. What I'm doing wrong?
var newText = text.replace("*", "<a href=></a>");