regex for largest number code example
Example: regex for largest number
var myString = "857nano620348splitted3412674relation5305743";
var largest = Math.max.apply(null, myString.match(/\d+/g));
var myString = "857nano620348splitted3412674relation5305743";
var largest = Math.max.apply(null, myString.match(/\d+/g));