javaScript Regex Grouping Заменить заменить
"hello _there_".replace(/_(.*?)_/, "<div>$1</div>")
Ansary
"hello _there_".replace(/_(.*?)_/, "<div>$1</div>")