RegEx email Help Needed

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
Joan Garnet
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

Post by Joan Garnet » Sun May 25, 2003 9:09 am

just split it into an array with explode and do your eregi with the index you want.

an example:

Code: Select all

$my_string = "From: John Doe";
$my_split = explode ( " " , $my_string );
$useful_part = $my_split [3];


User avatar
New php-forum User
New php-forum User
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens

Post by mike » Thu May 29, 2003 2:16 pm

You can also use: strstr()

eg: strstr($email, $qryHeaders);

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests