[\b ] = anything but a backspace or a space I think you would need \S.
After a quick look, I think this would only fail in obvious places (typos). "Look here: http://www.mysite.com.This will help you..." Pascal > -----Original Message----- > From: Michael Dinowitz [mailto:[EMAIL PROTECTED] > Sent: 31 December 2004 16:06 > To: RegEx > Subject: spot check > > I'm adding some code to the list archives to take any link posted and turn > it into a 'real' link. This is the code I'm using: > REReplace(text, '\b(https?://[^\b ]+)\b', '<A HREF="\1" > target="_blank">\1</A>', 'all') > > Does anyone see any problems with it. Any place it could fail? Any > suggestions? > Thanks > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:21:792 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
