RE: [PHP] preg_match? [SOLVED]

2003-06-30 Thread Brian S. Drexler
Sorry.  Must be Monday or something :-)

preg_match('/%%Title:(.*?)%%/i',$contents,$matches);



-Original Message-
From: Brian S. Drexler [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 8:35 AM
To: [EMAIL PROTECTED]
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] preg_match? [SOLVED]

2003-06-30 Thread Adam Voigt
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:[EMAIL PROTECTED]
 Sent: Monday, June 30, 2003 8:35 AM
 To: [EMAIL PROTECTED]
 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 ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php