replace() and Regular Expressions - Mailing list pgsql-general

From DEV
Subject replace() and Regular Expressions
Date
Msg-id 20051031181148.633B4DB573@svr1.postgresql.org
Whole thread Raw
Responses Re: replace() and Regular Expressions  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-general

Is is possible to use replace along with regular expression to remove any and all punctuation from a field?

 

If so how? 

 

I have tried: SELECT replace ('Brian\'s Co, INC.', 'Y*([.]',''),SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})');

 

The second field substring works with out a problem the replace does not! How man I make that work?

 

 

pgsql-general by date:

Previous
From: Alex Turner
Date:
Subject: Re: SQL injection
Next
From: Ben
Date:
Subject: Re: SQL injection