RegEx help matching operators

c#, regex

Solution

Try this:

(<=|>=|!=|=|>|<)

Problem

I need to match some operators: =, !=, >, <, <=, >= The string I need to match may be something like: "2=2 OR 33 >= 32 AND 3<5" What can be the RegEx expression to match this, knowing that - I don't want to receive a '=' match on a '<=' operator - The operators may or may not have spaces surrounding them Thanks in advance! Alex

Original source