Actually, please ignore my last message. I have got it to work:
reFindNoCase("<a[ ][\w -~]+productID=[ -~]+</a>",inputString, pos)

Thank you everybdoy for your help.

Regards,

cfcoder

> Thank you Jason, Craig and Bobby for your help which is greatly 
> appreciated. However this is not quite what I want. I do apologise for 
> changing my original requirement.
> 
> I'll try to explain.
> 
> I want to read the contents of all the .cfm files in a directory and 
> return all the href tags with the "productID=" text in the query 
> string, ex:
> <a href="somesite.com/index.cfm?action=get&productID=1">test</a>
> 
> When I did a search in the codebase for "productID=", I found there 
> were few <a> tags which looked like this:
> 
> <a title="Find out more" href="somesite.com/index.
> cfm?action=get&productID=1" onclick="somefunction()"><img src="exmaple.
> gif" alt="some alt">
> 
> I want the regular expression to be able to match the above example as 
> well.
> 
> If it is not too much of an inconvenience can you please send me the 
> revised code?
> 
> Regard,
> cfcoder
> 
> > EDIT:
> > 
> > The regex should be this one instead.  The one above would not 
> handle 
> > any thing between the href="" and the closing >. 
> > 
> (<a[^>]*href=[> 
> '"](([^'"]*)?([^"']ProductID=?([^&"']*)[^'"]*))['"][^>]*>([^<]*)<\/a>) 
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299256
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to