a guest Feb 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- pattern = "^[]"
- matches1 = re.match(pattern, len(lorem_ipsum))
- results = matches1.read()
- string1 = len(lorem_ipsum)
- pattern = "sit[-:]amet"
- matches1 = re.findall(pattern, string1)
- results = matches1.count(pattern, string1)
- print (results)
RAW Paste Data