Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

how to parse the string,

$
0
0
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.

.jpg  for loop block.JPG (Size: 54.1 KB / Downloads: 5)

Viewing all articles
Browse latest Browse all 1653

Trending Articles