daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
Top