String
Posted: Mon Mar 24, 2008 11:02 am
Hi all,
My input:
AAAAA = 10000 OR AAAAA = 10000 AND BBBBB = 20000 AND CCCCC = 20000 OR CCCCC=20000 AND DDDDD=30000
Output should be:
(AAAAA = 10000 OR AAAAA = 10000) AND (BBBBB = 20000) AND (CCCCC = 20000 OR CCCCC=20000) AND (DDDDD=30000)
basically all the ORs should be grouped and put into braces from the input.
PLease suggest me to arrive at the desired result.
Thanks,
-M
My input:
AAAAA = 10000 OR AAAAA = 10000 AND BBBBB = 20000 AND CCCCC = 20000 OR CCCCC=20000 AND DDDDD=30000
Output should be:
(AAAAA = 10000 OR AAAAA = 10000) AND (BBBBB = 20000) AND (CCCCC = 20000 OR CCCCC=20000) AND (DDDDD=30000)
basically all the ORs should be grouped and put into braces from the input.
PLease suggest me to arrive at the desired result.
Thanks,
-M