title: Search for quotes with regular expression
body: <p>I'm looking for a way to search a text file for quotes made by author and then print them out. My script so far:</p>
  
  <pre><code>import re
  
      #searches end of string 
      print re.search('"$', 'i am searching for quotes"')
  
      #searches start of string 
      print re.search('^"' , '"i am searching for quotes"')
  </code></pre>
  
  <p>What I would like to do </p>
  
  <pre><code>import re
  
  ## load text file
  quotelist = open('A.txt','r').read()
  
  ## search for strings contained with quotation marks
  re.search ("-", quotelist)
  
  ## Store in list or Dict
  Dict = quotelist
  
  ## Print quotes 
  print Dict
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>import re
  
  buffer = open('bbc.txt','r').read()
  
  quotes = re.findall(r'.*"[^"].*".*', buffer)
  for quote in quotes:
    print quote
  
  # Add quotes to list
  
   l = []
      for quote in quotes:
      print quote
      l.append(quote)
  </code></pre>