Java pattern matching queries

E

Earth

Hi all,

I am new in using the java pattern and having problem to match the
following

<body>bb
<table>
<banner>
it is a banner
</banner>
it is table1
</table>

from

<body>bb
<table>
<banner>
it is a banner
</banner>
it is table1
</table>
<table>
it is table2
</table>
</body>

I have tried the pattern (<body>[\\x00-\\x7F]*)</table> but fails. The
(<body>[\\x00-\\x7F]*)</table> matches all. My goal is to match all
text from the start to the first </table>

Please enlighten me.

Thanks in advance for you inputs.

Eclifeww
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top