regexp_like transfered into a general boolean function