Not really. Do you care WHAT the link is or do you just want to know how many links there are? If you're just looking to find the number of links in a string, then use list functions with "href " as your delimiter.
<cfset String='this is a series of text with <a href="">links</a> in it. It has at least <a href="">two links</a> so that we can see if this code works properly.'> <cfset hrefCount = ArrayLen(ListToArray(String,"href"))> That should get you close to how many links are in your string. -----Original Message----- From: K Simanonok [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 7:51 AM To: CF-Talk Subject: Regular Expression to count links Is it possible to use a regular expression to count the number of links <A HREF="http://something.com">like so</A> in a given block of text? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278260 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

