title: How to print words from a string up to a point in Python
body: <p>I have created a script in Python which prints the word following a certain string in a csv file.</p>
  
  <p>The code I have is:</p>
  
  <pre><code>    `import re
      file=open("csvfile.csv", "r")
      text=file.read()
      data=re.findall('(?&lt;=originalName\=\')\w+',text)
      print data`
  </code></pre>
  
  <p>This works, however I want to print the words up until the character " in the string. Currently it only prints out the first word and the originalName could range from one to many words.</p>
  
  <p>Thanks</p>