> <cfset var = REReplace(inputvar,"\r?","","ALL")>

This will replace all characters with an empty string, one character at a
time.  Somehow, I imagine that this is not what you want.  :)

You really don't even need a regex for this; it's just a simple search and
replace:

<CFSET var=Replace(inputvar,Chr(13) & Chr(10),"","ALL")>

However, this will only handle input from browsers that (correctly) wrap
lines with both Cr and Lf.  To handle both:

<CFSET var=ReplaceList(inputvar,"#Chr(13)#,#Chr(10)#",",","ALL")>

-Rick

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to