in reply to Re^5: How to extract special charachetrs like <=, >= != from string
in thread How to extract special charachetrs like <=, >= != from string

This can also be achieved, if you resort to Capture groups and Backreferences, see also there [which uses \1 instead of \g1, but see the caveat in Capture groups].