Guest User

Untitled

a guest
Dec 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def test(matrix,txt):
  2. for num_group in matrix:
  3. print num_group
  4. for num in num_group:
  5. for line in txt:
  6. if re.findall(r'[#]d{3,10}', line)[:1] == num:
  7. print "found some more numbers in the line number!"
  8. print line
  9. more_nums = re.findall(r'[#]d{3,10}', line)[1:]
  10. matrix[num_group].append(nums)
Add Comment
Please, Sign In to add comment