fork download
  1. import re
  2. s = "X. Perez - bill auctions, she's"
  3. print(re.findall(r"\b[A-Z]\.\s?[A-Z][a-z]+\b", s))
Success #stdin #stdout 0.02s 9400KB
stdin
Standard input is empty
stdout
['X. Perez']