Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to parse the string,
#1
I have a code on a webpage in the following pattern::

Code:
for (anything might be here) { this is the Start of the parent for loops body for (anything might be here) { this is the Start of the child for loops body for (anything might be here) { this is the Start of the 2nd child for loops body if { } 2nd child for loop closes here } 1st child for loop closes here } Parent for loop closes here }

I need to extract the body of the first for loop, so I start reading from the first curly braces, what logic should I have to keep reading till the last curly brace (I need to extract the body of the parent for loop, there are multiple parent for loops one after another.


Attached Files Image(s)
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)