Hi Vineeth, Just now i tested.
But here, initially pattern1 should be present and under pattern1 pattern2 should be present and pattern3 should be present under pattern3. whatever the code i had posted previously, its working. but the problem is, that code will work only for 3 nested pattern matching.
If you had any idea please suggest me how i can do that nested pattern matching for more than 3 patterns which should be in a generic way.
Thanks in advance