title: how to make substring in Python but for my example?
body: <p>I have a string like this:</p>
  
  <pre><code>&lt;node&gt; user = "bob" password ="123" &lt;/node&gt; &lt;node&gt; user = "john" password ="123" &lt;/node&gt; &lt;node&gt; user = "will" password ="1234" &lt;/node&gt; &lt;node&gt; user = "andrew" password ="12345" &lt;/node&gt; &lt;node&gt; user = "mike" password ="123456" &lt;/node&gt;
  </code></pre>
  
  <p>How can I extract only users? I want to get a list having bob, john, will, andrew, mike and all others that have this format: <code>user = "XXXX"</code></p>
  
  <p>I checked some substrings methods, but none solved my problem. You can set a start and end index with slicing method, but I don't want to use integers, I want to search by string.</p>