Advertisement
zero_shubham1

problem

Nov 1st, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. from __future__ import print_function
  2. import re
  3.  
  4. css = ""
  5. for i in range(int(raw_input())):
  6. css+=raw_input()
  7. css+='\n'
  8.  
  9. inside_brackets = re.findall(r'\{.*?\}', css, flags=re.DOTALL)
  10. for property in inside_brackets:
  11. map(lambda i: print(i,sep='\n',end='\n'),(re.findall(r'#(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})\b', property)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement