REreplaceNoCase and "<br />" issue


hello, everyone.

 

i using javascript replace line breaks textarea "<br />" before submitting form, , part working flawlessly.

 

where i'm having issue trying replace "<br />" chr(13) & chr(10) in data pulled database when trying edit value.  i'm using rereplacenocase() i'm not sure how tell cf regex engine for.

 

here i'm using insert line breaks html:

document.formname.fieldname.value = document.formname.fieldname.value.replace(/(\r\n|\r|\n)/g,"<br />"); 

 

here how i'm attempting reformat editing inside textarea:

#rereplacenocase(qry.columnname,"<br />",chr(13) & chr(10),"all")# 

 

but rereplacenocase isn't finding of "<br />" in value.  how should regex formatted find "<br />"?

 

respectfully,

 

^_^

i think issue using rereplacenocase not specifying regular expression.  why not try using replacenocase have.  think work you.



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support