------art_345_2601328.1321406591812
Content-Type: multipart/alternative; 
	boundary---art_346_17646718.1321406591816"

------art_346_17646718.1321406591816
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Any expert regexp wrangler around here. I can't quite find a way to split a 
document up in sections:

    This is an example.
        a  
    Of what I mean.
        b  

    And it can go on
    like this.

        c  
    For ever and ever.

        d  

    So how does one parse it?

I want to split it into groups, such that if in yaml it would be:

    ---
    - |
      This is an example.
          a  
    - |
      Of what I mean.
          b  

    - |
      And it can go on
      like this.

        c  
    - |
      For ever and ever.

        d  

    - |
      So how does one parse it?

I can write a line-by-line algorithm, but I figure there has to be an 
regexp that can do it more better.
 

------art_346_17646718.1321406591816
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Any expert regexp wrangler around here. I can't quite find a way to split aocument up in sections:<div><br></div><div>&nbsp; &nbsp; This is an example.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; a = 1</div><div>&nbsp; &nbsp; Of what I mean.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; b = 2</div><div><br></div><div>&nbsp; &nbsp; And it can go on</div><div>&nbsp; &nbsp; like this.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; c = 3</div><div>&nbsp; &nbsp; For ever and ever.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; d = 4</div><div><br></div><div>&nbsp; &nbsp; So how does one parse it?</div><div><br></div><div>I want to split it into groups, such that if in yaml it would be:<br></div><div><br></div><div>&nbsp; &nbsp; ---</div><div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; - |</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; This is an example.</div><div style="border-style:nitial; border-color: initial; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a =</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; - |</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; Of what I mean.</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = 2</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; - |</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; And it can go on</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; like this.</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; &nbsp; c = 3</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; - |</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; For ever and ever.</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; &nbsp; d = 4</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; - |</div><div style="border-style: initial; border-color: initial; ">&nbsp; &nbsp; &nbsp; So how does one parse it?</div></div><div><br></div><div>I can write a line-by-line&nbsp;algorithm, but I figure there has to be an regexp that can do it more better.</div><div>&nbsp;</div>
------art_346_17646718.1321406591816--

------art_345_2601328.1321406591812--