regexp replace?

CSN <cool_screen_name90001@yahoo.com>

From: CSN <cool_screen_name90001@yahoo.com>
To: pgsql-general@postgresql.org
Date: 2004-05-06T20:59:16Z
Lists: pgsql-general
I'd like to create a function that will take strings
like:

abcdef 'quote1' "quote2" / xyz etc.

and return:

abcdef-quote1-quote2-xyz-etc.

Basically remove all characters that aren't
[A-Za-z0-9], -, or ., and replace all spaces with
hyphens. Possible? The only string function that
supports regular expressions is substring and I
couldn't make that do what I want.

TIA,
CSN


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover