> I am using a regex to find a string in DreamWeaver and I thought > > <a href="(.*)[^"]" > > Would return: > <a href="index.cfm/page.application" > > but instead it returns: > <a href="index.cfm/page.application" class="more">More..</a> <span > class="raque">»</span></p></td> > > Is my regex wrong or any other ideas?
DW MX use a JavaScript 1.5 engine, so it support the "lazy quantifier". You could try this: <a href="(.*?)" BTW DW Search & Replace has an hidden gem, in the "Search For" dialog box, select "Specific Tag" or "Text (advanced)", it's a unique, superpowerful feature that very few people know and use. If you would like to learn more about RegExp in JavaScript 1.5 and DW, this is a must read: http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/regexp .html Hope it will help ---------------------------- Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ---------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

