C# Regular Expression
Posted on 2012-08-13
I have a string which is like
field1 - field2 '<=>' 20. Any one of <=, <, = , >=, >,<> can be present in the '<=>'. I have to split the string to give me the LHS, RHS and the symbol, which can be one of the 6 mentioned above. Is it possible to do this using Regular Expressions or should I write custom code?
Ex: field1 - field2 <= 20 to my parser should give me field1 -field2, <= and 20 as output.