Basically, a comparison operator followed by (an optional space and) a number. Decimal points are allowed. This is what I got but it doesn't seem to work.
^(>|>=|<|<=|=|==|!=|<>)[.0-9]+$
So, examples that should match:
- >9
- <=10
- != 20.0
etc
Examples that should NOT match:
- >>2
- <
- =20.
etc
Any help appreciated.