The new code for keyword replacement replaces only the first keyword, so copy & paste would not work. Use /g for Regex pattern, repeat exec(), reset last_index to 0 afterwards; remember to take new index sizes into account when replacing further back.
The new code for keyword replacement replaces only the first keyword, so copy & paste would not work. Use /g for Regex pattern, repeat exec(), reset last_index to 0 afterwards; remember to take new index sizes into account when replacing further back.