Guest User

Untitled

a guest
Feb 13th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. pattern = "^[[]]"
  2. matches1 = re.match(pattern, len(lorem_ipsum))
  3. results = matches1.read()
  4.  
  5. string1 = len(lorem_ipsum)
  6. pattern = "sit[-:]amet"
  7. matches1 = re.findall(pattern, string1)
  8. results = matches1.count(pattern, string1)
  9.  
  10. print (results)
Add Comment
Please, Sign In to add comment