title: parsing string value within a string
body: <p>I have to retrieve the value after <code>10</code> and before <code>TM</code> i.e <code>MJ</code> from the below string:</p>
  
  <blockquote>
    <p>":XX /10/MJ/TM"</p>
  </blockquote>
  
  <p>I am able to retrieve the value from below code:</p>
  
  <pre><code>String s=":XX: /10/MJ/TM *";
  String[] arr = s.split("\\r?\\n?/");
  
  for(int i=0;i&lt;arr.length;i++)
      System.out.println(arr[2]);
  </code></pre>
  
  <p>Is there any effective way to do this?</p>