hi
how can i use regexp to group these digits into groups of 3?
eg
line 123456789123456 789
i have :
pat = re.compile("lin e\s+(\d{3})" , re.M|re.DOTALL)
but this only gives the first 3. I also tried
"line\s+(\d{3}) +"
but also not working.
I need output to be ['123' ,'456','789', '123','456','78 9', .....]
thanks.
how can i use regexp to group these digits into groups of 3?
eg
line 123456789123456 789
i have :
pat = re.compile("lin e\s+(\d{3})" , re.M|re.DOTALL)
but this only gives the first 3. I also tried
"line\s+(\d{3}) +"
but also not working.
I need output to be ['123' ,'456','789', '123','456','78 9', .....]
thanks.
Comment