find index of last character being a number in javascript code example
Example: find the last occurrence of a character in a string javascript
str.lastIndexOf(searchValue[, fromIndex])
str.lastIndexOf(searchValue[, fromIndex])