js find index of the first letter in a string code example
Example: get index of first number in string javascript
var str = "Se7en";
var search = str.search(/\d/);
console.log("first digit at: ", search); // first digit at: 2
var str = "Se7en";
var search = str.search(/\d/);
console.log("first digit at: ", search); // first digit at: 2