title: I need to find a given word in a string of names
body: <p><code>sudo:x:27:mike,david,dash,bart,pablo,jack</code>. This string contains a few names that are separated by only camas. If I say I want to find out if mike is in the string, I want my program to look for that given name. But if I ask if "pa" is in the string, the program will say that "pa" is in the string, even though "pa" is not a name, rather part of a name. How do I separate each name or even better, set it up into a sort of list so that it is easier to identify if a given name is in the group? </p>
  
  <p>This is what my program looks so far:</p>
  
  <pre><code>import re
  
  user = str(input("What user are you looking for?\n"))
  
  txt = open("group.txt", "r")
  
  for line in txt:
      if re.match("(.*)sudo(.*)", line):
          if &lt;!where I need the code!&gt;:
              print(user + " is a sudoer")
              break
          else:
              print(user + " is not a sudoer")
              break
  </code></pre>