RE: [PHP] preg_match? [SOLVED]

From: Date: Mon, 30 Jun 2003 12:44:00 +0000
Subject: RE: [PHP] preg_match? [SOLVED]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153398@lists.php.net to get a copy of this message
Sounds like someone has a case of the Monday's. On Mon, 2003-06-30 at 08:40, Brian S. Drexler wrote: > 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 -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network Administrator The Cryptocomm Group

« previous php.general (#153398) next »