I am gonna go ahead and assume you are working with server-side programming in JAva maybe? Are you using Servlets or JSPs? I worked with Servlets before and learning JSPs right now so I might be able to help if you could describe the functionality of explde in PHP.
Hey I just did a simple google search and found maybe what you are looking for would be the StringTokenizer class or the split method in the String class. That would be my suggestion if I am not waaaaaaaaaaaaay off of what you are asking. CHeers!
The problem with String.split() is that it uses a greedy regex match, so if some of your tokens are empty strings, it will drop them. If you want to preserve empty strings, use this method: