Javascript Regex Example 1

By @iamswain2/7/2018javascript

find : <%- global.LANGUAGE.MENU_TEXT_ICECREAM %>
change to : <%- global.LANGUAGE.MENU_TEXT_ICECREAM[global.lang] %>


(<%- )(global.LANGUAGE.)(.+)(\s%>)
$1$2$3[global.lang]$4

2

comments