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)
Add Comment
Please, Sign In to add comment