Re: Stripping out special characters...

2011-11-04 Thread Greg Morphis
I should have read the rest of your question.. I think you'll have to do it multiple times since it's not a blanket replace.. but maybe someone else has another idea On Fri, Nov 4, 2011 at 9:34 AM, Greg Morphis wrote: > rereplace(string, "[^a-zA-Z0-9-_]", "", "all") > > On Fri, Nov 4, 2011 at 9:

Re: Stripping out special characters...

2011-11-04 Thread Greg Morphis
rereplace(string, "[^a-zA-Z0-9-_]", "", "all") On Fri, Nov 4, 2011 at 9:30 AM, Dennis Belmont wrote: > > I'd like to create a function that reviews a string and replaces all > characters that aren't alphanumeric, or a dash or underscore. These will > generally be short strings, and the functio

Stripping out special characters...

2011-11-04 Thread Dennis Belmont
I'd like to create a function that reviews a string and replaces all characters that aren't alphanumeric, or a dash or underscore. These will generally be short strings, and the function will be used for things like creating friendly page names from navigation text. Some characters would be co