By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,643 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,643 IT Pros & Developers. It's quick & easy.

identify a value which represents a string in regular expression

P: 20
I have a string "<html>Books of:<b>John Smith</b><ul><li> <i> Title:</i>DBPrimer</li><li><i> Title:</i>Comp Systems
</li></ul></html>"

and i have a grammar

<html>Books of:<b>#PCDATA</b><ul>(<li><i>Title</i>#PCDATA</li>)+</ul></html>

how can i retrieve all the values which represents #PCDATA of grammar from the first string using java??

ie my output should be John smith, DBPrimer, Comp Systems
with above given input string and grammar

Please help me..
Jun 13 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.