MLUG: RE: [MLUG - DISCUSSION] pulling url's from email
RE: [MLUG - DISCUSSION] pulling url's from email
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
> I did roughly the same thing, except using CGI instead of a text file.  I'm
> trying to decide now how to do linked images out of the text. right now it
> just converts *://* into <a href="*://*">*://*</a>

I cheated and stole my regexpr from the urlview program (seems to work
pretty well) and it seems to grab any URL.. links, images, or just sitting
alone in plain-text. I just had it write all found URLs as links because
my most common task is using wget to spider all the URL's. If you wanted
something more human readable you could just check your URL to see if it
had a common extension (.jpg, .gif, .png) and if so make it an IMG tag
rather than a normal link.

--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/