Find string inside string using regular expressions : <p>So I'm trying to find a efficient way of extract a string inside a string, I believe regular expressions would probably be the best approach for this, however I'm not familiar with regular expressions nor with C# &amp; How I would go about constructing that.</p>

<p>I'm currently using a for loop that searches the string for a sequence, then extracts the next 3 entries after that sequence, however it isn't accurate due to entries varying in size etc.</p>

<p>-Example of String</p>

<pre><code> heythereiamexample: 12instackoverflow
</code></pre>

<p>String can vary though in terms of chars between target string</p>

<p>-Example of target string</p>

<pre><code>example: 12
</code></pre>

<p>Now I don't necessarily mind on what I extract, whether it be the digits relative to the string, or the string entirely ( digits included ), but one factor is that the string must end with [0-9]+</p>

<p>So expected output would obviously be,</p>

<pre><code>example: 12
</code></pre>
