identify a value which represents a string in regular expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Merin Lalu
    New Member
    • Oct 2011
    • 20

    #1

    identify a value which represents a string in regular expression

    I have a string "<html>Book s 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>T itle</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..
Working...