emailexp() & urlexp(): E-mail Address & URL Expanders

Last updated: 27/04/04

These functions parse e-mail addresses and URLs typed in normal text and then encloses them in appropriate anchor tags.E-mail address are completed with mailto: after href= and absolute URLs have target="_blank" to the anchor tag. If you have a content management system, online forum, message board or any Web application in which users are likely to type e-mail addresses or URLs, this function will greatly enhance the usability of user-entered data. It will parse any e-mail address or URL ending in a recognised top-level domain name, as long as they follow a space, new line, or opening parenthesis.