simeonshopov

Match Full Name (ре)

Feb 20th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. import re
  2.  
  3. names = input()
  4.  
  5. x = '\\b[A-Z][a-z]+ [A-Z][a-z]+\\b'
  6.  
  7. matches = re.findall(x, names)
  8.  
  9. print(' '.join(matches))
Add Comment
Please, Sign In to add comment