I've got a simple question for someone that knows how to do this :)
Suppose I've got a string of text and I want to split it and return just a piece of it, say between two tags. Something like this:
String text = "here's some text, bla bla bla <tag1>just give me this text</tag1> and then more text bla bla bla";
String delims = ???
String result = new String; // don't really know how many entries, but assume just a few for this example
result = text.split(pattern);
for(int i=0; i<result.length; i++)
System.out.println("token["+i+"]: " +result[i].toString());
Does that make sense? Can you offer me a little help?