Answers for "regex for largest number"

0

regex for largest number

var myString = "857nano620348splitted3412674relation5305743";
var largest  = Math.max.apply(null, myString.match(/\d+/g));
Posted by: Guest on March-11-2021

Browse Popular Code Answers by Language