string filtering in postgres? - Mailing list pgsql-general

From Kenneth Tilton
Subject string filtering in postgres?
Date
Msg-id 49E79718.2070103@gmail.com
Whole thread Raw
Responses Re: string filtering in postgres?
List pgsql-general
I need to normalize a column for search purposes by stripping all
non-alphanumeric characters:

   UPDATE my-table SET id_stripped = ??? id;

I have been playing with regexp_replace( id, ????,'');

   UPDATE my-table
        SET id_stripped = regexp_replace( id, <various>,'');id;

Without much luck. Can this even be done with regex, or should I just
write a custom sql function?

kt

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: Looking for advice on database encryption
Next
From: Steve Atkins
Date:
Subject: Re: Looking for advice on database encryption