Regular expressions inside C#

  • Thread starter Thread starter bonda101
  • Start date Start date
B

bonda101

I am trying to find how to evaluate a regular expression
(with 1's and 0') in a string form inside a source file
(*.cs in a .NET FW1.1 environment)

For eg:- result = " 1 && 0 || ( ! 1 || 1) " , where
result is a Boolean variable;

Appreciate any thoughts or help solving this.
 
I have no idea of what to do that, but 2 things are sure :
- your sample is not a regular expression but a logic expression
- You have to replace all the "1" by "true" and "0" by "false" before be
able to evaluate the expression.

hopes that will help
ROM
 
Back
Top