The regular expression url replaces a symbol

/ 7.html 1-2-3-4-5-6-jump to / s/1_2_3_4_5_6_7.html
url-replace _
how to make NGINX jump


for regular de-substitution characters, JS's replace method can be implemented:

var urlstr='/s/1-2-3-4-5-6-7.html'
var newurlstr=urlstr.replace(/-/g,'_')
console.log(newurlstr);
Menu