title: How to remove all String text before equals ('=') sign Java
body: <p>I'd like to parse a string so I can build an XML document. </p>
  
  <p>I have:</p>
  
  <pre><code>String value = "path=/Some/Xpath/Here";
  </code></pre>
  
  <p>I've parsed it this way:</p>
  
  <pre><code>private void parseXpath() {
      String s = "path=/Some/Xpath/Here";
  
      String[] tokens = s.split("/");
      for(String t: tokens){
          System.out.println(t);
      }
  }
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>path=
  Some
  Xpath
  Here
  </code></pre>
  
  <p>How can I remove "path=" altogether? I want just the values from xpath?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Thanks for the responses. </p>
  
  <p>How can I make this method into one which returns String[],</p>
  
  <p>Example:</p>
  
  <pre><code>private String[] parseXpath(String s) {
  
  String[] tokens = s.replaceFirst(".*=", "").split("/");
     for(String t: tokens){
        System.out.println(t);
     }
     return tokens;
  }
  </code></pre>
  
  <p>My output is:</p>
  
  <pre><code>[Ljava.lang.String;@413849df
  </code></pre>
  
  <p>How can I make it return me array of strings? </p>