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
: 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
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
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)
4 matches
Mail list logo