Validate Boolean Query - java
Posted
by JavaUser
on Stack Overflow
See other posts from Stack Overflow
or by JavaUser
Published on 2010-03-20T10:50:08Z
Indexed on
2010/03/20
10:51 UTC
Read the original article
Hit count: 329
java
hi,
I need the java code snippet for the below logic:
Following is a string and I need to validate the string based on the below condition :
"100 or 200 and 345 not 550 " - Valid string
"abc or 200 and 345 SAME ** 550 " - Not a Valid String
1 . the operands(eg 100,200 ..) should be positive numbers 2 . the operator should be and/or/not
Thx
© Stack Overflow or respective owner