title: Splitting string into substring in Java
body: <p>I have one string and I want to split it into substring in Java, originally the string is like this </p>
  
  <pre><code>Node( &lt;http://www.mooney.net/geo#wisconsin&gt; )
  </code></pre>
  
  <p>Now I want to split it into substring by (#), and this is my code for doing it </p>
  
  <pre><code>String[] split = row.split("#");
  
  String word = split[1].trim().substring(0, (split[1].length() -1));
  </code></pre>
  
  <p>Now this code is working but it gives me </p>
  
  <pre><code>    "wisconsin&gt;"
  </code></pre>
  
  <p>the last work what I want is just the work "wisconsin" without ">" this sign, if someone have an idea please help me, thanks in advance.</p>