title: How to get data from a source code contained in a textarea
body: <p>I have a source code in a database field. It's a 3000 line code. I'm only interested in some fields of this source code, not all the code. The code is something like this (obviously I only posted a few lines to you):</p>
  <pre><code>&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; class=&quot;troop_details inReturn&quot;
      &gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;td class=&quot;role&quot;&gt;
                                              &lt;a href=&quot;/karte.php?d=91628&quot;&gt;01] #AfaccRoCap!&lt;/a&gt;
                                      &lt;/td&gt;
                  &lt;td colspan=&quot;11&quot; class=&quot;troopHeadline&quot;&gt;
                                                                  &lt;a href=&quot;/karte.php?d=94829&quot;&gt;Return from 0-New Hulk&lt;/a&gt;
                                      &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody class=&quot;units&quot;&gt;
              &lt;tr&gt;
                  &lt;th class=&quot;coords&quot;&gt;
                                              &amp;#x202d;&lt;span class=&quot;coordinates coordinatesWrapper coordinatesAligned coordinatesltr&quot;&gt;&lt;span class=&quot;coordinateX&quot;&gt;(&amp;#x202d;&amp;minus;&amp;#x202d;1&amp;#x202c;&amp;#x202c;&lt;/span&gt;&lt;span class=&quot;coordinatePipe&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;coordinateY&quot;&gt;&amp;#x202d;&amp;minus;&amp;#x202d;28&amp;#x202c;&amp;#x202c;)&lt;/span&gt;&lt;/span&gt;&amp;#x202c;                                    &lt;/th&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u21&quot; title=&quot;Phalanx: 0:45:33&quot; alt=&quot;Phalanx&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u22&quot; title=&quot;Swordsman: 0:53:09&quot; alt=&quot;Swordsman&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u23&quot; title=&quot;Pathfinder: 0:18:46&quot; alt=&quot;Pathfinder&quot; src=&quot;/img/x.gif&quot; /&gt;                  &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u24&quot; title=&quot;Theutates Thunder: 0:16:47&quot; alt=&quot;Theutates Thunder&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u25&quot; title=&quot;Druidrider: 0:19:56&quot; alt=&quot;Druidrider&quot; src=&quot;/img/x.gif&quot; /&gt;                  &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u26&quot; title=&quot;Haeduan: 0:24:32&quot; alt=&quot;Haeduan&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u27&quot; title=&quot;Ram: 1:19:44&quot; alt=&quot;Ram&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u28&quot; title=&quot;Trebuchet: 1:46:18&quot; alt=&quot;Trebuchet&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u29&quot; title=&quot;Chieftain: 1:03:47&quot; alt=&quot;Chieftain&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                      &lt;td class=&quot;uniticon&quot;&gt;
                          &lt;img class=&quot;unit u30&quot; title=&quot;Settler: 1:03:47&quot; alt=&quot;Settler&quot; src=&quot;/img/x.gif&quot; /&gt;                    &lt;/td&gt;
                                                      &lt;td class=&quot;uniticon last&quot;&gt;
                          &lt;img class=&quot;unit uhero&quot; title=&quot;Hero&quot; alt=&quot;Hero&quot; src=&quot;/img/x.gif&quot; /&gt;                 &lt;/td&gt;
                              &lt;/tr&gt;
          &lt;/tbody&gt;
  
          &lt;tbody class=&quot;units last&quot;&gt;
              &lt;tr&gt;
                  &lt;th&gt;Troops&lt;/th&gt;
                                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit&quot;&gt;
                                                      340                                         &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none&quot;&gt;
                                                      0                                           &lt;/td&gt;
                                      &lt;td class=&quot;unit none last&quot;&gt;
                                                      0                                           &lt;/td&gt;
                              &lt;/tr&gt;
          &lt;/tbody&gt;
  
                      &lt;tbody class=&quot;infos&quot;&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Bounty&lt;/th&gt;
                      &lt;td colspan=&quot;11&quot;&gt;
                          &lt;div class=&quot;res&quot;&gt;
                              &lt;div class=&quot;inlineIconList resourceWrapper&quot;&gt;&lt;div class=&quot;inlineIcon resources&quot; title=&quot;Lumber&quot;&gt;&lt;i class=&quot;r1&quot;&gt;&lt;/i&gt;&lt;span class=&quot;value &quot;&gt;6066&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;inlineIcon resources&quot; title=&quot;Clay&quot;&gt;&lt;i class=&quot;r2&quot;&gt;&lt;/i&gt;&lt;span class=&quot;value &quot;&gt;5509&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;inlineIcon resources&quot; title=&quot;Iron&quot;&gt;&lt;i class=&quot;r3&quot;&gt;&lt;/i&gt;&lt;span class=&quot;value &quot;&gt;4345&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;inlineIcon resources&quot; title=&quot;Crop&quot;&gt;&lt;i class=&quot;r4&quot;&gt;&lt;/i&gt;&lt;span class=&quot;value &quot;&gt;9580&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;                        &lt;/div&gt;
                          &lt;div class=&quot;carry&quot;&gt;
                              &lt;img class=&quot;carry full&quot; title=&quot;carry&quot;
                                   alt=&quot;carry&quot;
                                   src=&quot;/img/x.gif&quot;/&gt; &amp;#x202d;&amp;#x202d;25500&amp;#x202c;&amp;nbsp;/&amp;nbsp;&amp;#x202d;25500&amp;#x202c;&amp;#x202c;                     &lt;/div&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          
          &lt;tbody class=&quot;infos&quot;&gt;
              &lt;tr&gt;
                  &lt;th&gt;Arrival&lt;/th&gt;
                  &lt;td colspan=&quot;11&quot;&gt;
                      &lt;div class=&quot;in&quot;&gt;in&amp;nbsp;&lt;span  class=&quot;timer&quot; counting=&quot;down&quot; value=&quot;451&quot;&gt;0:07:31&lt;/span&gt;&amp;nbsp;hrs.&lt;/div&gt;
                      &lt;div class=&quot;at&quot;&gt;&lt;span&gt;at&amp;nbsp;20:16:39&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
              &lt;a name=&quot;at&quot;&gt;&lt;/a&gt;
  </code></pre>
  <p>In particular, I would be interested in collecting some data, for example <strong>01] #AfaccRoCap!</strong>:</p>
  <pre><code>&lt;a href=&quot;/karte.php?d=91628&quot;&gt;01] #AfaccRoCap!&lt;/a&gt;
  </code></pre>
  <p>and <strong>Return from 0-New Hulk</strong> here:</p>
  <pre><code>&lt;a href=&quot;/karte.php?d=94829&quot;&gt;Return from 0-New Hulk&lt;/a&gt;
  </code></pre>
  <p>and for example <strong>20:16:39</strong> here:</p>
  <pre><code>&lt;td colspan=&quot;11&quot;&gt;
                      &lt;div class=&quot;in&quot;&gt;in&amp;nbsp;&lt;span  class=&quot;timer&quot; counting=&quot;down&quot; value=&quot;451&quot;&gt;0:07:31&lt;/span&gt;&amp;nbsp;hrs.&lt;/div&gt;
                      &lt;div class=&quot;at&quot;&gt;&lt;span&gt;at&amp;nbsp;20:16:39&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
                  &lt;/td&gt;
  </code></pre>
  <p>How can I withdraw them? thanks a lot</p>