I have a requirement , my client send me a string. for the links he is sending link title in squre brackets and link with bracket. like below,
[Google](https://www.google.com/)
I need get that value and make it clickable Google . adding like below and replace that to the original text.
<a href = "' + title + '" target="_blank">' + url + '</a>'
can anyone suggest better way of doing this with JavaScript regex.