Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. period={p1:{R:{M:'-1'}},p2:{R:{D:{start:'-28',end:'-1'}}
  2.  
  3. RE_DAY_END = re.compile(r'(D:{start:'-d+',end:')+(?P<dend>-[0-9]+)')
  4. match_day= RE_DAY_END.findall(x)
  5. print(match_day)
  6.  
  7. I am not interested: [("D:{start:'-28',end:'", '-1')]
  8.  
  9. I need this one: [("D:{start:'-28',end:'-1')]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement