http://www.javaprogrammingforums.com/java-code-snippets-tutorials/22-text-processing-regular-expressions-explained.html

Please show me the code you have and an example xml input :)