Guest User

Untitled

a guest
Feb 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ABCD = XYZAHFJKBKFF
  2. {
  3. sdfsd
  4. sd
  5. fsd
  6. fsd
  7. fsd
  8. fsd
  9. fsd
  10. fsd
  11. (This can be anything and including most common characters)
  12. (This may Include Curly, Round brackets as well)
  13. }
  14.  
  15. pattern = re.compile(r"ABCD.*}",re.DOTALL)
  16. fafs = re.findall(pattern, data)
  17.  
  18. for letters in re.findall(pattern, data):
  19. print(letters)
Add Comment
Please, Sign In to add comment