fork(1) download
  1. import re
  2. pronounRegex = re.compile(r'\b(I|we|my|ours|(?-i:us))\b',re.I)
  3. pronouns = pronounRegex.findall(' I me you We and all of us make this team tweek, he is from US')
  4. print(pronouns)
  5.  
Success #stdin #stdout 0.02s 9432KB
stdin
Standard input is empty
stdout
['I', 'We', 'us']