I just need to strip out a space

2005-04-17 Thread Will Tomlinson
I'm trying to simply strip out any spaces from a scent being entered through a form input. The scent might be Grape Ape, and I'm using it to build a product code. So I just need to get that space outa there (grapeape), and I'm doing something wrong here. cfset

RE: I just need to strip out a space

2005-04-17 Thread Dawson, Michael
: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Sun 4/17/2005 7:18 AM To: CF-Talk Subject: I just need to strip out a space I'm trying to simply strip out any spaces from a scent being entered through a form input. The scent might be Grape Ape, and I'm using it to build a product code. So I just need

Re: I just need to strip out a space

2005-04-17 Thread Will Tomlinson
Assuming this is not a multi-line text area form field... cfset stripscent=Replace(FORM.prodscent, ,,ALL) Thanks Michael! It did the trick. Hopefully that'll be my only brain spasm for the day, but somehow I DOUBT it... :) Will

Re: I just need to strip out a space

2005-04-17 Thread Jared Rypka-Hauer - CMG, LLC
Will: reReplace(form.prodscent,\s,,all) There's your regex... strips any kind of whitespace from the text in question. J On 4/17/05, Will Tomlinson [EMAIL PROTECTED] wrote: Assuming this is not a multi-line text area form field... cfset stripscent=Replace(FORM.prodscent, ,,ALL)