How to split a string into substrings using special keywords? : <p>I have to split a string into an array. It has to split when it finds the special substring denoted by '@ + keyword'. Example of keywords:</p>

<ul>
<li>@alpha</li>
<li>@beta</li>
<li><p>@lolli</p>

<p><strong>Input:</strong></p>

<p>'AAHSD@alphaHDHDG@alphaSGTDHDGT@betaSDGSDFHDG@alphaASFAGF@lolliSFDSFG@alphaSGHSHSF@lolliGA'</p>

<p><strong>Desired Output</strong></p>

<p>[A,A,H,S,D, @alpha, H,D,H,D,G, @alpha, S,G,T,D,H,D,G,T, @beta, S,D,G,S,D,F,H,D,G, @alpha, 
A,S,F,A,G,F, @lolli, S,F,D,S,F,G, @alpha, S,G,H,S,H,S,F, @lolli, G,A]</p></li>
</ul>
