RegEx email Help Needed

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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:

Thu May 29, 2003 2:16 pm

You can also use: strstr()

eg: strstr($email, $qryHeaders);
11:16am up 404 days, 2 users, load average: 148.68, 143.45, 132.6


Mike Vassileiou
[Systems Administrator / PHP Developer]


PHP/MySQL Manual:
http://www.phpmysql-manual.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests