How do I replace one of the matches when there are multiple regular matches?

clipboard.png
as shown in the figure: I use str.replace (/ (null) /, "jsonCallBack");
can only replace the first null,
, but what should I do to replace the third?

the following is the string
"< input type=" radio "name=" p_date_type_sl_sl_sl "value=" id_id_id_D "onclick=" ig.smartSubmit ("ccbppt_form:id_id_id_D",null,null,"ccbppt_form:id_id_id_D,ccbppt_form:parasGrid,ccbppt_form:jsCodes",null); "> < label for=" p_date_type_sl_sl_sl "> Japan < / label >"


then let the rule match only to the third null

replace(/null(?=\);)/,'jsonCallBack')

`"<input type="radio" name="p_date_type_sl_sl_sl" value="id_id_id_D" onclick="ig.smartSubmit('ccbppt_form:id_id_id_D',null,null,'ccbppt_form:id_id_id_D,ccbppt_form:parasGrid,ccbppt_form:jsCodes',null);"><label for="p_date_type_sl_sl_sl"></label>"`.replace(/null(?=\);)/,'jsonCallBack')
Menu