Stripping characters.....
| From: | CDitty | Date: | Sun, 28 Apr 2002 06:16:18 +0000 |
| Subject: | Stripping characters..... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94965@lists.php.net to get a copy of this message | ||
Hello all,
Does anyone have any snippets of code that will strip several characters from a string? I am trying to figure out how to do this without using 3 different if statement blocks. This is what I am looking for.
ie....User email address is "Chris Ditty" <mail@redhotsweeps.com> or Chris Ditty <mail@redhotsweeps.com>
I need to be able to strip the quotes and everything between them and the < > signs from the first one and then the name and the < > signs from the second.
Does anyone know how to do this quickly and easily?
Thanks
CDitty