Delete everyting preceding and including a certain substring from variable
<p>In Bash, how can I delete characters from a variable until a certain substring?</p>
<p>Example:</p>
<pre><code>ananas1kiwi2apple1banana2tree
</code></pre>
<p>shall look like this:</p>
<pre><code>apple1banana2tree
</code></pre>
<p>The substring in this case is <code>2</code>.</p>