Answer the question
In order to leave comments, you need to log in
How to find all occurrences of numbers?
It is required to compose a regular number to search for a number consisting of a certain number of digits, for example, 5 digits, no more no less
Example_1: "id = 111; //comment" result = no match
Example_2: "var a = 11122; //comment" result = "11122"
Example_3: "reg = 11122555; //comment" result = no match
Tried ([\d]{19}) but then example 3 also falls under this regsp
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question