6
I need to replace all occurrences of these 2 characters "_1" in a string with "_2", but Regex does not accept to put a variable there.
var current_registration_number = 1;
html = html.replace(/\_{current_registration_number}/g, '_'+next_registration_number);
Somebody help me get through this problem?