Q:

regex changing before last dot value

var str = 'esolri.gbn43sh.earbnf'
console.log(
  str.slice(str.lastIndexOf('.') + 1)
)
0

New to Communities?

Join the community