RegEx email Help Needed

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

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 johndoe@domain.com";
$my_split = explode ( " " , $my_string );
$useful_part = $my_split [3];


bye!

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

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: Bing [Bot], Yahoo [Bot] and 1 guest