Not real elegant, but it should work.  

<cfset temp = rereplace(teststring,"[^a-zA-Z ]","","ALL")/>
<cfset temp = replace(temp," ","_","ALL")/>


On 4/19/05, Jake McKee <[EMAIL PROTECTED]> wrote:
> All,
> 
> I need some help with a RegEx I'm trying to create. I need to do the
> following:
> 
> - Take a string of text that may include spaces and special characters
> - Change the spaces to the "_" (underscore) character
> - Remove all special characters entirely (other than the space replaced
> underscore)
> 
> Any smart RegEx people on the list that can give that one a stab?
> 
> Thanks!
> Jake
> 
> ----------------------------------------------------------
> To post, send email to [email protected]
> To unsubscribe:
>    http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> To subscribe:
>    http://www.dfwcfug.org/form_MemberRegistration.cfm
> 
> 


-- 
Invite 50 Friends to Gmail!  Who has friggin' 50 friends!?
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to