title: Why is this Python Regex Expression not working?
body: <p>I'm new to regex expressions, and python. But created a script that uses multiple regex expressions. Two of which, work when run through Regexpal.com. But when I run the script. They do not work. Script works fine, when I run my other regex expressions. Here are the two that are not working. Can someone explain why they do not work, and give me the correct expressions?
  I tested these three different ones, none work. I have a line with</p>
  
  <pre><code>Patient: Höler, Adam* 10.07.1920    ID-Nr: 1118111111
  </code></pre>
  
  <p>And I want to extract <code>Patient: Höler, Adam</code>.</p>
  
  <pre><code>Patient:\s.*\*
  Patient:.*?([*])
  Patient:.*\*
  </code></pre>
  
  <p>I have another line with </p>
  
  <pre><code>VCI-exsp = 20mm; 
  </code></pre>
  
  <p>And I'm trying to extract <code>VCI-exsp=20mm</code> (get rid of the <code>';'</code>). This is the regex expression I made, but it also works on regexpal.com (and on Atom), but not when I run the script.</p>
  
  <pre><code>VCI-exsp =[^;]*
  </code></pre>
  
  <p>Here is the scripts I have, regexText is a text file full of my regex expressions. And Realthingnotaphony is the text file with the text I'm trying to extract data from. If the problem is that I'm not including r, how would I inject it into the expressions?</p>
  
  <pre><code>regexarr = []
  with open("regexText.txt") as fw:
      for line in fw:
          regexarr.append(re.compile(line))
  matchs = []
  count = 1
  with open('Realthingnotaphony.txt') as f:
      for line in f:
          for regexp in regexarr:
              test = re.search(regexp, line)
          if test != None:
              matchs.append(test)
              print(test.group(0))
  </code></pre>