Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test(matrix,txt):
- for num_group in matrix:
- print num_group
- for num in num_group:
- for line in txt:
- if re.findall(r'[#]d{3,10}', line)[:1] == num:
- print "found some more numbers in the line number!"
- print line
- more_nums = re.findall(r'[#]d{3,10}', line)[1:]
- matrix[num_group].append(nums)
Add Comment
Please, Sign In to add comment