Javascript Regex Example 1

in javascript •  7 years ago 

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


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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!