title: Finding an explicit word in a list using python
body: <p>I have a key-value (ID, tag) formatted CSV file containing the following:</p>
  
  <p>1,art</p>
  
  <p>2,fine art;masterpiece</p>
  
  <p>3,modern art</p>
  
  <p>4,artifact;artefact</p>
  
  <p>5,article</p>
  
  <p>My goal is to use python to return only IDs 1, 2, and 3, which are the tags with the word "art" explicitly within them. When I use the find() function (myfile.find("art")), it finds IDs 1-5.  </p>
  
  <p>My first thought was to look to the characters around the string "art" in the tags.  Maybe I could use the isalpha() function to ask if the character before and after the string "art" are indeed letters, not punctuation. However, this is one of the first python scripts I have written, so there may very well be a REGEX that does this in one line that I am not aware of.</p>
  
  <p>Any help would be greatly appreciated.</p>