Little reular expression problem

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

Little reular expression problem

Post by eshban »

Hello,

I need a regular expression, which reads a text file and stores all the Email addresses found in TEXTFILE in a variable.

Kindly guide me in this regard.

Thank
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You can use the RFC compliant one that's been posted about many times with preg_match_all().
Post Reply