How to get string that is present in regular expression.
Input: For example HtmlContent contains string
"<% CustomerSignUpURL ||Text:Hello Abhishek %>"
Output: after replacing string should be anchor tag like below:
Hello Abhishek // where Hello Abhishek is anchor tag
Please help me with the code what should be there in place of question mark given below:
campaignInfo.HtmlContent = campaignInfo.HtmlContent.replace(
/<% CustomerSignUpURL ||Text:([a-zA-Z0-9_\-\.]+) %>/g,
'<a href="<% CustomerSignUpURL %>">{????}</a>'
);
$1?