Friday, January 26, 2007

Java: find nested balanced tags

Problem:
I needed to parse out some divs from a html page, and java's regex cant do it. atleast when you have arbitrary number of nested balanced elements.

Solution:

Use at your own risk.

No comments:

Post a Comment