There are a series of repeating digits those i want to capture, perhaps starting right after the decimal point or after a while. In short i have a problem with capturing
222553
in 0.00222553222553222553222553222553222553222553222553
6
in 0.166666666666666666
1
in.0.11111
with the same regexp. I have tried many that i could think of from /(d+)1/
to /(d+?d+?)1/
(which looked promising) to /(((d)3*(?!3))+?)1/
but was not able to figure it out. Could anybody help please?