Thanks, but if I have an anchor tag in this format, it won't return the 
HREF
alone
        <a href="http://someplace.com/page.cfm"; name="SomeName">

Your regular expression will include the name attribute as well.


-----Original Message-----
From: Steve Oliver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 11:20 AM
To: CF-Talk
Subject: RE: Another RegEx question


If you just want the value of href, do something like:

Rereplacenocase(string, "<a href=([^>]*)>", "\1", "ALL")

______________________
steve oliver
cresco technologies, inc.
http://www.crescotech.com


-----Original Message-----
From: Shawn Grover [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 29, 2002 1:10 PM
To: CF-Talk
Subject: Another RegEx question


I find myself needing to find all the HREF values on a given page.
Regular
Expressions are the answer, but I haven't nailed the pattern yet.

Any help???

I've tried the following:
   "\w+:\/\/[^/:]+:\d*?[^# ]*"
   "(\w+)://([^/:]+)(:\d+)?/(.*)[\s|>]"
   "href=\S.*[\S|>]"

They tend to give me more than just the href value, like the next 3 
tags
and
text between em.
The first two patterns are directly from a microsoft article on this
(I'm
working in VB too), with the first being the same as the second but no


______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to