Why is the following instruction returning FALSE?
FALSE
SELECT \'[1-3]{5}\' SIMILAR TO \'22222\' ;
I can\'t find what is wrong with that
The operator is defined as:
string SIMILAR TO pattern
so the first parameter is the string that you want to compare. The second parameter is the regex to compare against.
You need:
SELECT '22222' SIMILAR TO '[1-3]{5}';