I have a dillemma.
I need to parse out nested divs, but i cant just have an expression like this:
String re = "(?i)(<div class=\"leftNavMenu\" id=\"leftNavMenu\">(.*?))<\\/div>)"
because this div may contain other divs, and a </div> tag from one of those will be matched.
I need to somehow keep track of balanced </div> tags. any ideas?
(other then using an html parser, because i am already waaaaaaaaaaaaaay over the deadline)