String

Make suggestions regarding the DSX site or the Forum

Moderators: chulett, rschirm, roy

Post Reply
albasir
Participant
Posts: 18
Joined: Fri Nov 09, 2007 11:08 am

String

Post 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
Last edited by albasir on Wed Mar 26, 2008 11:49 am, edited 1 time in total.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post 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.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply