title: How do I extract UK county name matches from string
body: <p>I have a list of UK county names and 8397 job titles which may contain those county names. I am able to find whether those matches are True or False or filter to rows where a string match was found. </p>
  
  <p>However, I'd like to exract the match to another column when found but not sure how to do this. E.g. If a match to Surrey from ukcounties is found in UK['Title'] then extract Surrey to another column.</p>
  
  <p>Thanks!!</p>
  
  <pre><code>ukcounties = ['Somerset', 'Staffordshire', 'Suffolk', 'Surrey']
  
  UK['Title'] = 
  ['Relief Chef de Partie  Croydon  Surrey  Live in', 
  'Pastry Chef Baker  artisan bakery  Suffolk Coast']
  
  UK.Title.apply(lambda sentence: any(word in sentence for word in ukcounties))
  
  Output:
  9        False
  12       False
  13        True
  26       False
  27       False
           ...  
  55157    False
  55158    False
  55159     True
  55161     True
  55165    False
  Name: Title, Length: 8397, dtype: bool
  
  UK[UK.Title.str.contains('|'.join(ukcounties))]
  Output: 1003 rows × 12 columns
  </code></pre>