<cfoutput>
<cfset str ="hai how are you? i am fine
what about you?" >
<cfdump var="#str#" /><br>
<cfset str = #replace(str,"#chr(13)&chr(10)#"," ","all")#>
<cfdump var="#str#" /><br>
<cfset str = #reReplace(str, "#chr(13)&chr(10)#"," ")#>
<cfdump var="#str#" />
</cfoutput>
The above code produces this kind of output
hai how are you? i am fine what about you?
hai how are you? i am fine what about you?
hai how are you? i am fine what about you?
my task replaces the new character of the string, but I cannot. if any way to do this please let me know?
source
share