"hello _there_".replace(/_(.*?)_/, function(a, b){ return '<div>' + b + '</div>';})哦,或者您也可以:
"hello _there_".replace(/_(.*?)_/, "<div>$1</div>")

"hello _there_".replace(/_(.*?)_/, function(a, b){ return '<div>' + b + '</div>';})哦,或者您也可以:
"hello _there_".replace(/_(.*?)_/, "<div>$1</div>")