------ 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> This is an example.</div><div> a = 1</div><div> Of what I mean.</div><div> b = 2</div><div><br></div><div> And it can go on</div><div> like this.</div><div><br></div><div> c = 3</div><div> For ever and ever.</div><div><br></div><div> d = 4</div><div><br></div><div> 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> ---</div><div><div style="border-style: initial; border-color: initial; "> - |</div><div style="border-style: initial; border-color: initial; "> This is an example.</div><div style="border-style:nitial; border-color: initial; "> a =</div><div style="border-style: initial; border-color: initial; "> - |</div><div style="border-style: initial; border-color: initial; "> Of what I mean.</div><div style="border-style: initial; border-color: initial; "> b = 2</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; "> - |</div><div style="border-style: initial; border-color: initial; "> And it can go on</div><div style="border-style: initial; border-color: initial; "> like this.</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; "> c = 3</div><div style="border-style: initial; border-color: initial; "> - |</div><div style="border-style: initial; border-color: initial; "> For ever and ever.</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; "> d = 4</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; "> - |</div><div style="border-style: initial; border-color: initial; "> So how does one parse it?</div></div><div><br></div><div>I can write a line-by-line algorithm, but I figure there has to be an regexp that can do it more better.</div><div> </div>
------ art_346_17646718.1321406591816--
------ art_345_2601328.1321406591812--