Regex for splitting Markdown (Android)
<p>So I have some text in MarkDown which I'd like to split between headers into a string array, but including the content between the headers.
So for the following example:</p>

<pre><code>**Header 1**Lots of text here.\n**Header 2**More and more text here..\n**Header 3** etc..
</code></pre>

<p>What I'd like to end up with is an array of:</p>

<pre><code>**Header 1**Lots of text here.\n
**Header 2**More and more text here..\n
**Header 3** etc..
</code></pre>

<p>What I'm trying is along the lines of (?&lt;=\*{1,10}.<em>\</em>{1,10}) although I think somewhere in there should be something like [^*{2}] to include every char but only a max of 2 *'s (the close of the header).
The \n is not guaranteed to be before the header so I'm a little bit stumped about how to do this.</p>

<p>Any help would be much appreciated :)</p>