title: How to extract certain strings start with a symbol from a text file in python?
body: <p>How can i extract all words start from symbol '$' from a text file?</p>
  
  <p>File a (ascii) --></p>
  
  <pre><code>        @ExtendedAttr = nvp_add(@ExtendedAttr, "severity", $severity,  
   "description", $description, "eventID", $eventID,
               "eventURL", $eventURL, "alertLevel", $alertLevel, 
        "eventStart", $eventStart,
               "eventSourceCount", $eventSourceCount, "eventSourceTable", 
  $eventSourceTable, "eventDestCount", $eventDestCount)
  </code></pre>
  
  <p>I want the output to be like this (all in new line) :</p>
  
  <pre><code>$severity
  $description
  $eventID
  $eventURL
  $alertLevel
  $eventStart
  $eventSourceCount
  $eventSourceTable
  $eventDestCount
  </code></pre>