I would use the regular expressions package, java.util.regex, construct a regular expression that matches the pattern of what you are looking for, then you split the results using a pattern.split() call and you have everything you need. For a full explanation of the java.util.regex package you can get it from the online api at http://java.sun.com/j2se/1.4.2/docs/api/index.html




Reply With Quote