How to locate the ID tag of a string and grab its value
<p>Due to the nature of Drupal Calendar's confusing web of functions I'm going to have to do something different.</p>

<p>I need to grab the id tag and its value from an array containing html code.</p>

<pre><code>&lt;div class="view-item view-item-calendar" id="node-154"&gt;
  &lt;div class="calendar.111.field_showtimes_two.0.0 calendar monthview mainstagetheatre-highlight"&gt;
              &lt;div class="view-field view-data-node-title node-title"&gt;


        &lt;a href="/tca/mainstage/ninetofivemusical"&gt;9 to 5: The Musical&lt;/a&gt;      &lt;/div&gt;  
      &lt;/div&gt;    
&lt;/div&gt;
</code></pre>

<p>This is the code I will need to parse. Is it possible to target that id tag and whatever I set it as? Im doing it this way because I don't know where the array is created so I can add a node id, so I have to add it where the html is created.</p>
