6.1. I was looking at the archives and have come up with this but it's
erroring....
I'm using the img instance because it's easier to test on pages that
have multiple images...
#refindnocase("<img[^>]*src="([^"]*)*>",cfhttp.fileContent,0,true)#
John Burns
Certified Advanced ColdFusion MX Developer
Wyle Laboratories, Inc. | Web Developer
-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 22, 2005 4:14 PM
To: CF-Talk
Subject: Re: regex help for grabbing values of html tag attributes
What version of CF?
--Ben
Burns, John D wrote:
> Does anyone have a regex already written (or would any of you regex
> gurus like you put something up) that could take the source code of an
> HTML file and grab the value of an attribute given the tag and the
> attribute that would be grabbed. For instance, if I wanted to get the
> value of any classes used on a span tag, it would search for span tags
> and search for a class attribute and return the value within the
> quotes after "class=". Or, for images, it would search for the <img>
> tag and find the "src" attribute and return the url listed in there?
> I have tried a few things but haven't had a whole lot of luck. Any
> help would be great. Thanks!
>
> John Burns
> Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. |
> Web Developer
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199703
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54