RE: [PHP] preg_match? [SOLVED]

From: Date: Mon, 30 Jun 2003 12:40:27 +0000
Subject: RE: [PHP] preg_match? [SOLVED]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153397@lists.php.net to get a copy of this message
Sorry. Must be Monday or something :-) preg_match('/%%Title:(.*?)%%/i',$contents,$matches); -----Original Message----- From: Brian S. Drexler [mailto:sysadmin@saginawcontrol.com] Sent: Monday, June 30, 2003 8:35 AM To: php-general@lists.php.net Subject: [PHP] preg_match? Ok, here is my problem. I have a Postscript file that looks something like this: %!PS-Adobe-3.0 %%Title: Q-111BSD %%Creator: Windows NT 4.0 %%CreationDate: 8:31 6/30/2003 %%Pages: (atend) ..... And I want to get the Q-111BSD into a variable but I can't figure out how to keep it from grabbing the next line as well. Does anyone have any idea how I can do this? Thanks in advance! Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#153397) next »