testing= testing.match(/(d{5})/g);
I'm reading a full html into variable. From the variable, want to grab out all numbers with the pattern of exactly 5 digits. No need to care of whether before/after this digit having other type of words. Just want to make sure whatever that is 5 digit numbers been grabbed out.
However, when I apply it, it not only pull out number with exactly 5 digit, number with more than 5 digits also retrieved...
I had tried putting ^
in front and $
behind, but it making result come out as null.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…