detecting links in strings

From: Date: Mon, 05 Aug 2002 00:49:12 +0000
Subject: detecting links in strings
Groups: php.general 
Request: Send a blank email to php-general+get-111117@lists.php.net to get a copy of this message
Hi all Has anyone got any suggestions on the easiest way to detect strings like http://www.bla.bla.bla.com/test.html or ftp://ftp.bla.bla.bla.com mailto://name@company.com etc etc I've got a text buffer containg url's of different typs mixed in with normal text. What I want to do is go through the buffer and htmlise the url type strings so that they are clickable. Has anyone got any suggestions on the easiest way to do this? Thanks in advance for any suggestions. Regards Nick ___________________________________________ This email (including all attachments) may contain personal information and is intended solely for the named addressee. It is confidential and may be subject to legal or other professional privilege. Any confidentiality or privilege is not waived or lost because this email has been sent to you by mistake. If you have received it in error, please let us know by reply email, delete it from your system and destroy any copies. This email is also subject to copyright. No part of it should be reproduced, adapted or communicated without the written consent of the copyright owner. Any personal information in this email must be handled in accordance with the Privacy Act 1988 (Cth). Emails may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems. We give no warranties in relation to these matters. If you have any doubts about the authenticity of an email purportedly sent by us, please contact us immediately.

« previous php.general (#111117) next »