title: Matching an extracting country name from character string in R
body: <p>I've been scraping review data from a website, and in the process I am able to get a vector of character strings that contain the username, number of reviews, review date, and country info. They look roughly like this</p>
  
  <pre><code>raw &lt;- c("Anna (1025) - North Carolina, USA - DEC 20, 2017", 
  "James (10) - - MEXICO - NOV 22, 2017", 
  "Susane (222) - Oulu, FINLAND - JUNE 1, 2016", 
  "Alex (20000) - SOUTH KOREA- MAR 11, 2015")
  </code></pre>
  
  <p>So far I can extract the names, review numbers, and dates as those are at defined positions or have consistent formatting.  The issue is that the country name formatting is not consistently located, and the various data points within each string are not consistently separated by commas or dashes.  Just extracting upper case strings runs into the issue of missing countries or those with two parts to their name.</p>
  
  <p>The maps package contains a country list.  Is there a way that I can use <code>str_extract_all</code> in <code>stringr</code> to find matches within the country list vector and extract just that?</p>