Regular Expression help or an alternative
<p>I have a file that looks like the following with lines of tags. I have:</p>

<pre><code>Pattern.compile("&lt;(?:TIMEX TYPE|ENAMEX TYPE)=.+?&gt;(.+?)&lt;/(?:TIMEX|ENAMEX)&gt;");
</code></pre>

<p>This gets the data I need if both tags are on one line. My problem is dealing with the following lines:</p>

<pre><code>&lt;ENAMEX
TYPE="CITED"&gt;1&lt;/ENAMEX&gt;
</code></pre>

<p>If there is a split in the middle of the tag it does not work correctly. So I am looking for help improving my regular expression, or an alternative that works with non standard xml tags.</p>
