finding substring
<p><br />
   Thanks in advance.I want to find all the substring that occurs between K and N,eventhough K and N occurs in between any number of times.
     for example<br />
        a='KANNKAAN'</p>

<p>OUTPUT;<br />
          [KANNKAAN, KANN , KAN ,KAAN]</p>
