[PHP] Re: Make all emails links

2006-03-08 Thread Rafael
I agree, your regexp are bad (jk) What you need is a regexp that matches an email address. Look for something like "regexp email" on Google (without the quotes) or something similar and you should find some regexp to validate an email address; once you have it use it with preg_replace() like

[PHP] Re: Make all emails links

2006-03-08 Thread El Bekko
Benjamin Adams wrote: I'm pulling data from a database; When the data is pulled emails look like [EMAIL PROTECTED] Is there a way to just make all email address in the text that it pulls so, "bla bla bla okjsokdf [EMAIL PROTECTED] ksnow noduowe..." Make the email in the text be a mailto link au