Probably easiest to replace the [img] bbml before applying the autolink regex... then you can use ^(^") at the beginning of your regex to make sure the first character isn't a double-quote (i.e. an image tag attribute) and slide the \1 down so the backreferences are "\1<a ...\2...>\2</a>"... hth
> These large regular expressions drive me nuts! > I've got this regex (can�t remember where but I definitely > didn�t write it. > str = rereplace(str, > "((((https?:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/&##!@: > =\+~_]+[A-Za-z0-9\ > /])", "<a href=""\1"" target=""_blank"">\1</a>", "ALL"); s. isaac dealey 954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:194005 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

