Thread: Q: regcomp failed with error invalid character range

Q: regcomp failed with error invalid character range

From
Robert
Date:
I need to select records with description containing chars with highest
bit set but

    select * from table where descr ~ '.*ATU[\0200-\0377].*';

fails with error

    ERROR:  regcomp failed with error invalid character range

Any idea how to work around it? Thanks.

- Robert

P.S. This is 7.0.2 from RPM on RH 6.1, locale is CZ, database is with
encoding 'latin2' (8).