As with all regex questions: http://www.pjnetsolutions.com/regex/
:D I *will* one day get it sorted into a decent complete website and design it properly! Paul > -----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]
