Page 1 of 1

String

Posted: Mon Mar 24, 2008 11:02 am
by albasir
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

Posted: Mon Mar 24, 2008 11:11 am
by kcbland
Could you please post in the appropriate forum for your version? We can't possibly answer your question without the information you're forced to enter. We don't know if this is an RTI, PX, Server, version, etc job.

Please don't answer here. POST in the correct forum your question again.