I'm using the following RegEx
cfset temp = reGET(images[i],(|')(.*)(gif|jpg|png))
The challenge I'm having is that it is returning:
0 height=45 width=60
src=http://i.l.cnn.net/cnn/video/world/2008/03/03/vo.germany.plane.close.call.liveleak.60x45.jpg
instead of:
-
From: Nate Willard [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008 4:43 PM
To: CF-Talk
Subject: Regex Advice
I'm using the following RegEx
cfset temp = reGET(images[i],(|')(.*)(gif|jpg|png))
The challenge I'm having is that it is returning:
0 height=45 width=60
src=http
to: www.winninginthemargins.com
Enter passkey: goldengrove
Web Developer / ColdFusion Programmer
http://William.Seiter.com
-Original Message-
From: Nate Willard [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008 4:43 PM
To: CF-Talk
Subject: Regex Advice
I'm using the following RegEx
rereplace(img, '.*?(img).*?(src=)(.*?)(.*)', '\3')
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
I'm using the following URL and working to obtain all the image
absolute paths:
May be you should have a look at CF_REextract :
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
It will save you lots of coding, and could even CFHTTP the file for you.
--
Thanks Bobby your code appears to be working perfectly.
Bobby Hartsfield [EMAIL PROTECTED] wrote: rereplace(img, '.*?(
:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
~|
Adobe® ColdFusion® 8 software 8
I'd never heard of CF_REextract. Thanks for bring this up
Claude Schneegans [EMAIL PROTECTED] wrote: I'm using the following URL and
working to obtain all the image
absolute paths:
May be you should have a look at CF_REextract :
I'd never heard of CF_REextract.
You should visit us more often ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
8 matches
Mail list logo