On Sat, Jan 29, 2000 at 04:39:18PM -0500, Bill Jones wrote: > ([Ee]-?mail:)?[a-zA-Z]+([._][a-zA-Z]+)*@[^ ]+ It would be a bit cleaner to use /i and replace [Ee] with just E, and [a-zA-Z] with just [a-z]. However, this will not catch all valid E-mail addresses; there are other valid characters. You might want to use (?: ... ) rather than ( ... ) if you aren't going to used the parenthesized sections. A ">" could also end an E-mail address (e.g. <president@whitehouse.gov>), as could \t, \n, a comma (e.g. billg@microsoft.com, steveb@microsoft.com), and a few other characters. > (ftp://|http://)[^ ]+ Again, ">" could end a URL, as in <URL:http://www.psiphi.org/>. David Henderson -- For the latest news about Star Trek and Buffy books, visit Psi Phi! Star Trek Books: http://www.psiphi.org/cgi/upc-db/ <*> Buffy TVS Books: http://www.psiphi.org/cgi/buffy-db/ ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe