var text = "rating-1-gray-3-blue";
i want to get value 13
how can i do this . basically i want to get all integers inside a string .
i tried with parseInt , but it returns int when the integer value is at the beginning of the string
thanks in advance