Advertisement
Guest User

Syka

a guest
Jan 23rd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import re
  2.  
  3. text = open("Linux.md", "r")
  4. content = text.read()
  5. words = content.split()
  6.  
  7. kom = re.compile('.*(\w)(\1).*')
  8.  
  9.  
  10. for word in words:
  11.     if (re.findall(kom , word)):
  12.         print(word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement