title: getting BR-separated text via DOM in JS/JQuery?
body: <p>I am writing a greasemonkey script that is parsing a page with the following general structure:</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;&lt;td&gt;&lt;center&gt;
  &lt;b&gt;&lt;a href="show.php?who=IDNumber"&gt;(Account Name)&lt;/a&gt;&lt;/b&gt;
   (#IDNumber)
  &lt;br&gt; (Rank)
  &lt;br&gt; (Title)
  &lt;p&gt;
  &lt;b&gt;Statistics:&lt;/b&gt;
  &lt;br&gt;
  &lt;table&gt;
  &lt;tr&gt;&lt;td&gt;blah blah etc.
  &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/center&gt;&lt;/table&gt;
  </code></pre>
  
  <p>I'm specifically trying to grab the (Title) part out of that.  As you can see, however, it's set off only by  a <code>&lt;BR&gt;</code> tag, has no ID of its own, is just part of the text of a <code>&lt;CENTER&gt;</code> tag, and that tag has a whole raft of other text associated with it.</p>
  
  <p>Right now what I'm doing to get that is taking the innerHTML of the Center tag and using a regex on it to match for <code>/&lt;br&gt;([A-Za-z ]*)&lt;p&gt;&lt;b&gt;Statistics/</code>.  That is working okay for me, but it feels like there's gotta be a better way to pick that particular text out of there. </p>
  
  <p>... So, is there a better way?  Or should I complain to the site programmer that he needs to make that text more accessible?  :-)</p>