> Hi all,

> I need programming help.   I have a text file with various text notes and
> also included are various lengths URL addresses all stringed together one
> long wrapped text file.   If you look at the contents  of M$explorer
> Temporary  Internet Files (under DOS) you will see the 'index.dat' file and
> it contains something similar - imbedded URLs and other characters.

> In my files, I want to extract all URLs that start with a 'http://'
> (obviously) but my problem is trying to work out the length of the URL,
> URLs could have any length and ending with or without a DOT extension.  I
> can't assume anything between one  http: and before another is a valid URL
> either.

I think the answer is to check spaces.
A valid URL start with http:// and end with a space or any illegal 
URL char. Reasonable???
-------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
-------------------------------------------

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to