I have the following HTML string which I'm building using JS with help from https://jonsuh.com/blog/javascript-templating-without-a-library/:
htmlString= '<select id="DATE" type="text" value="myvalue"/><select id="FULLNAME" type="text" value="myvalue"/><select id="STREET" type="text" value="myvalue"/><select id="CITY" type="text" value="myvalue"/><select id="STATE" type="text" value="myvalue"/><select id="ZIP" type="text" value="myvalue"/><select id="FIRST" type="text" value="myvalue"/>'
I noticed that No closing select tag was produced and i decided to substitute in in using:
htmlString.replace(/\/>/g,">options_go_here</option>");
The regex looks right to me : https://regex101.com/r/gJLrhR/2
However I see no change in the string. What am I doing wrong ?