Answers for "regex changing before last dot value"

0

regex changing before last dot value

var str = 'esolri.gbn43sh.earbnf'
console.log(
  str.slice(str.lastIndexOf('.') + 1)
)
Posted by: Guest on October-06-2020

Code answers related to "regex changing before last dot value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language