On 2010/10/29 10:50, Gourav wrote:
I was just making some program then I am unable to find following Query..Make a program in which Finding the position of opening and closing brackets of { }. Q..... { () { [ ( ) ] } { ( ) } } Then answer should be ___________________________________________ Bracket { opening at 1 and closing at 14 Bracket ( opening at 2 and closing at 3 Bracket { opening at 4 and closing at 9 Bracket [ opening at 5 and closing at 8 Bracket ( opening at 6 and closing at 7 and so on ___________________________________________
Isn't that the sort of thing that Regular Expressions are good at? -- Regards, Mike Fry Johannesburg
