I think you might need a back reference Something like:
ReReplaceNoCase(GetContent.LongDesc,"image[0-9]*","/1.jpg","ALL") although you might need to check that out. Ade Talking of RegEx, Ben Forta has a SAMS RegEx in 10 minutes book coming out soon, should be as good as the SQL one. -----Original Message----- From: Mike Connolly [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 15:08 To: [EMAIL PROTECTED] Subject: [ cf-dev ] Regular Expression Help I have a table of content paragraphs which contain content along these lines. ' <p>Blurb Title</p><img src="/uploads/image123" width=124 align=left vspace=5 border=0> blah, blah, blah... ' What I need to do is replace image123 with image123.jpg where the Image ID (123) changes for each record of content. What I have tried so far is.... ReReplaceNoCase(GetContent.LongDesc,"image[0-9]*",".jpg","ALL") but this does... ' <p>Blurb Title</p><img src="/uploads/.jpg" width=124 align=left vspace=5 border=0> blah, blah, blah... ' What I need is a regular expression that replaces the single " after the image ID (123) with .jpg" to result in.... ' <p>Blurb Title</p><img src="/uploads/image123.jpg" width=124 align=left vspace=5 border=0> blah, blah, blah... ' Anyone any ideas? Regards Mike -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
