title: split a string based on pattern in java - capital letters and numbers
body: <p>I have the following string "3/4Ton". I want to split it as --></p>
  
  <p>word[1] = 3/4 and word[2] = Ton.</p>
  
  <p>Right now my piece of code looks like this:-</p>
  
  <pre><code>Pattern p = Pattern.compile("[A-Z]{1}[a-z]+");
  Matcher m = p.matcher(line);
  while(m.find()){
      System.out.println("The word --&gt; "+m.group());
      }
  </code></pre>
  
  <p>It carries out the needed task of splitting the string based on capital letters like:-</p>
  
  <p>String = MachineryInput</p>
  
  <p>word[1] = Machinery , word[2] = Input</p>
  
  <p>The only problem is it does not preserve, numbers or abbreviations or sequences of capital letters which are not meant to be separate words. Could some one help me out with my regular expression coding problem.</p>
  
  <p>Thanks in advance...</p>