title: Search for an item in a text file using UIMA Ruta
body: <p>I have been trying to search for an item which is there in a text file.</p>
  
  <p>The text file is like 
  Eg: `</p>
  
  <h2>>HEADING</h2>
  
  <h2>00345</h2>
  
  <h2>XYZ</h2>
  
  <h2>MethodName : fdsafk</h2>
  
  <h2>Date: 23-4-2012</h2>
  
  <h2>More text and some part containing instances of XYZ`</h2>
  
  <p>So I did a dictionary search for XYZ initially and found the positions, but I want only the 1st <strong>XYZ</strong> and not the rest. There is a property of XYZ that , it will always be between the 5 digit code and the text <strong>MethondName</strong> . </p>
  
  <p>I am unable to do that. </p>
  
  <pre><code>WORDLIST ZipList = 'Zipcode.txt';
  DECLARE Zip;
  Document
  Document{-&gt; MARKFAST(Zip, ZipList)};
  
  DECLARE Method;
  "MethodName" -&gt; Method;
  
  
  WORDLIST typelist = 'typelist.txt';
  DECLARE type;
  Document{-&gt; MARKFAST(type, typelist)};
  </code></pre>
  
  <p>Also how do we use REGEX in UIMA RUTA?</p>