Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- [newb] preg_replace for an email string
April 26, 2005, 10:48 pm
rate this thread
while i'm not new to php, i'm new to pattern matching and am finding it
rather difficult .. i would like to take a string that's an email address,
and change the '@' with '(at)' and any '.'s with '(dot)'. so for instance,
email@example.com would become email(at)nospam(dot)com(dot)au.
many thanks for any pointers
April 26, 2005, 8:39 am
Re: [newb] preg_replace for an email string
One quick glance of an experienced eye allowed to understand the blurred
and almost unreadable luke's handwriting:
Why use preg_replace? It's like firing a cannon on a mosquito. I'd
recommend str_replace - refer to www.php.net for documentation. It will
do exactly what you need.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum