PL/PGSQL Regexe - Mailing list pgsql-sql

From rdear
Subject PL/PGSQL Regexe
Date
Msg-id 3BA619A2.6090402@dev.internal
Whole thread Raw
Responses Re: PL/PGSQL Regexe
List pgsql-sql
I'm doing a check within a PL/PGSQL function using a regular expression 
and I get the error:

ERROR:  regcomp failed with error invalid character range

This appears to be because of the underscore "_" character. The regex I 
want to use is ''[A-Za-z0-9_]'' but this doesn't work. Any suggestions 
or is this a bug/feature?




pgsql-sql by date:

Previous
From: Carl van Tast
Date:
Subject: Re: group by weirdness
Next
From: Miguel González
Date:
Subject: Re: Registring a C function in PostgreSQL