[thelist] Stripping characters from string

CDitty mail at redhotsweeps.com
Sun Apr 28 09:33:01 CDT 2002


Thanks, but this won't strip out the characters inbetween.  What I need is
just the email address only.

Any other ideas?

Thanks
Chris

ps....please don't egg my house over this.   ;)

At 09:17 AM 4/28/2002, you wrote:
>This might help:
>
>function format_text($text){
>  // Strip out first character
>  $text = ereg_replace("#!","replace with",$text);
>  // Strip out second char
>  $text = ereg_replace("#1","replace with",$text);
>  // Strip out third char
>  $text = ereg_replace("#3","replace with",$text);
>return $text;
>}
>
>and then call it with:
>
>$stringafter= format_text($stringbefore);
>
>You could even make it more dynamic by fitting it with an array if you are
>so inclined.
>
>David
>www.confluentforms.com
>
>--
>For unsubscribe and other options, including
>the Tip Harvester and archive of thelist go to:
>http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list