extracting substring from large text blob

From: Date: Thu, 22 Jul 2004 01:12:22 +0000
Subject: extracting substring from large text blob
Groups: php.general 
Request: Send a blank email to php-general+get-191458@lists.php.net to get a copy of this message
hi i have a large text blob that i want to extract strings out of. the large text blob looks like "Name: john doe Date: 060604 Subject: this is subject Text: <long text blob>"; i want to just extract 'john doe' '060604' and 'this is subject' from the text blob. what would be the best string function to use? for instance, can i use preg match to extract the text between 'Name:' and 'Date:'? as these words would be the delimiters... thanks redmond -- Redmond Militante Software Engineer / Medill School of Journalism FreeBSD 5.2.1-RELEASE-p9 #0: Thu Jul 1 14:36:26 CDT 2004 i386 8:00PM up 5 days, 2:04, 2 users, load averages: 0.40, 0.08, 0.03

« previous php.general (#191458) next »