• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up

Javascript Regex Example 1

iamswain (25)in #javascript • 8 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

#regex #vscode
8 years ago in #javascript by iamswain (25)
$0.00
    2 votes
    • iamswain
    • zsh
    Reply 0
    Sort:  
  • Trending
    • Trending
    • Votes
    • Age