Regex example

Hi,

I wanted to capture the xml tags using an regular expression. Could any one suggest how to do it?

What i want is as follows:

consider following string

<abc>

<xyz>some data</xyz>

</abc>

I want to capture the whole string between <xyz></xyz> tags.

Thanks,

Divyesh

[362 byte] By [Divyesh82a] at [2007-11-27 0:01:02]
# 1
WTF?Your other thread is still in the top 5: http://forum.java.sun.com/thread.jspa?threadID=5156766&tstart=0You cant possibly be that impatient / lazy.
TuringPesta at 2007-7-11 15:51:48 > top of Java-index,Java Essentials,Java Programming...
# 2

> You cant possibly be that impatient / lazy.

Answers include :

1) Who is this posing as TuringPest ?

2) I'm sorry are you new ?

3) He's not lazy - he's efficiently searching for synergies by attacking the issue with multiple vectors

and my personal favorite

4) Yes he can be.

Aknibbsa at 2007-7-11 15:51:48 > top of Java-index,Java Essentials,Java Programming...
# 3
> 3) He's not lazy - he's efficiently searching for> synergies by attacking the issue with multiple> vectorsHaha, thats classic.
TuringPesta at 2007-7-11 15:51:48 > top of Java-index,Java Essentials,Java Programming...
# 4
Ok...Whatever it could be.....Has anyone got the answer for this?Thanks,Divyesh
Divyesh82a at 2007-7-11 15:51:48 > top of Java-index,Java Essentials,Java Programming...
# 5
> Has anyone got the answer for this?HOLY MOTHER OF JESUS IN HEAVENrespond to the help provided to you in your original thread.
TuringPesta at 2007-7-11 15:51:48 > top of Java-index,Java Essentials,Java Programming...
# 6

> > Has anyone got the answer for this?

>

> HOLY MOTHER OF JESUS IN HEAVEN

> respond to the help provided to you in your original

> thread.

Maybe if he posts a new thread someone can post the 2 current threads together in one post and then he will be happy, then he can even claim to have done research to find the answer.

Aknibbsa at 2007-7-11 15:51:48 > top of Java-index,Java Essentials,Java Programming...