I have a xml with list of users and need to extract names from the xml. i want to do this using groups, but not getting the right one. (needless to say, i am just beginning to explore the regex world ).
i have given the xml below. and trying this: Pattern.compile("(<name>(.*)</name>)",Pattern.CASE_INSENSITIVE ); which displays the whole string..
any suggestion will be of great help.