title: how can I manipulate this .txt file?
body: <p>The other day, I requested a data export from Facebook. The result was a 2GB folder full of HTML files. I'd like to read some of the files with a <strong>PowerShell script that exports the usernames of the users</strong>.</p>
  <p>This is an example of the file content:</p>
  <pre><code>&lt;div class=&quot;_3b0d&quot;&gt;Followers&lt;/div&gt;&lt;div class=&quot;_3b0e&quot; role=&quot;main&quot;&gt;&lt;div class=&quot;ph&quot;&gt;&lt;div class=&quot;_2let&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;https://www.instagram.com/AAAA&quot;&gt;AAAA&lt;/a&gt;&lt;/div&gt;&lt;div&gt;17.06.2021, 23:56&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  <p>It's all HTML and I want to export the username. In this case the username &quot;AAAA&quot;. That way I can export it into a csv so I can run queries.</p>
  <p>My problem is that I don't manage to manipulate the file to export only the usernames.</p>
  <p>Notes:</p>
  <ol>
  <li>everything is written on the first line of the file</li>
  <li>the username is always stated twice. first inside the link, then separated:</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/rysHX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rysHX.png" alt="example" /></a></p>
  <p>I'm familiar with manipulating strings in PowerShell, but not something this complex.</p>
  <p>I believe the way to solve this problem is by isolating the parts I need step by step. In the first step maybe isolate all the links and in the second step remove the part of the link that I don't need (since that part is always the same). I didn't figure out how to do that though.</p>