Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

replace question

New Here ,
Mar 19, 2010 Mar 19, 2010

Hello,

I have a replace question. I use a text editor and when I insert an image the code is looking like: <img src="/webimages/pic.jpg">. I looking for a replace tag that checks the input of the textarea and replace all <img src="/webimages/....jpg"> to <img src="http://www.domain.com/webimages/...jpg"> when saving the text.

Is that possible?

Thanks.

Samall

260
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 19, 2010 Mar 19, 2010
LATEST

Should be able to do it like this:

<cfset myText = '<img src="/webimages/....jpg">' />

<cfset myText = ReplaceNoCase('myText','<img src="/webimages/','<img src="http://www.domain.com/webimages/','ALL') />

Review more at http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_m-r_34.html .

Thanks,

Kevin

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources