fork(1) download
  1. import re
  2.  
  3. s = '#100001000100#'
  4. match = re.search('#((100+)+)#', s, re.IGNORECASE)
  5. print(match.groups(1))
  6.  
Success #stdin #stdout 0.04s 9504KB
stdin
Standard input is empty
stdout
('100001000100', '100')