Find the right Regex or approach to split a large text file to chunks
<p>I would like to split a large text file to chunks while reading with a FileReader/BufferedReader. Each chunk will be processed separately in my downstream code (i.e generating a HashMap of information for each chunk). In order to do this, at first, I need to find a pattern to define how one chunks looks like. 
Maybe someone can help me out here.</p>

<p>This is how the general structure of my file looks like ("//" and "\\" are not part of the file):</p>

<p>//</p>

<pre><code>    Car: Oldtimer

     Ford Model T - 1908    
     Chevrolet Bel-Air - 1956
     Mercedes-Benz W 198 - 1954 

    Car: Compact Car

     Toyota iQ - 2008
     Volkswagen Polo V - 2009
     Audi A1 - 2010 

    Car: Special Car

     Bat Mobile - 1966
     Black Beauty - 1966    
     K.I.T.T. - 1982

   Total: 3

                       //
</code></pre>

<p>One chunk should start with "Car: ABC" and end before the next "Car: XYZ" entry.
There is always one blank line before and after each "Car: ABC" entry. The file ends with "Total: n".
Just for illustration, the first chunk of my sample file will be:</p>

<p>//</p>

<pre><code>Car: Oldtimer

 Ford Model T - 1908    
 Chevrolet Bel-Air - 1956
 Mercedes-Benz W 198 - 1954 

                           //
</code></pre>

<p>So far, I tried REGEX matching to match any entries between the "Car:"-tags using <code>Pattern.compile("Car:\\s(.*)Car:\\s")</code> However, this approach would leave out each even chunk , e. g. the chunk starting with "Car: Compact Car".
Maybe you know other or better approaches to give each chunk an identity.
Thanks in advance. </p>
