get all occurence of substring between two chracters in java : <p>I have String Path like this </p>

<pre><code> "/Math/Math1/Algerbra/node"
</code></pre>

<p>how I can get all the occurence of substring between "/" and "/" to get (Math-Math1-Algerbra)</p>

<p>Thanks in advance</p>
