Re: [PHP] Still need help with regex function

2004-08-01 Thread Jason Wong
On Sunday 01 August 2004 08:07, C.F. Scheidecker Antunes wrote: > In order to get the filenames from the output below I have tried the > following: > > preg_match_all('/inflating:"(.*?)"/', $stdout, $matches); > print_r($matches); > return $matches[1]; > > But I only get empty arrays with it. Try

Re: [PHP] Still need help with regex function

2004-08-01 Thread Justin Patrin
On Sat, 31 Jul 2004 18:07:07 -0600, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > Hello, > > In order to get the filenames from the output below I have tried the > following: > > preg_match_all('/inflating:"(.*?)"/', $stdout, $matches); Why do you have " around the (.*?)? The sample text

[PHP] Still need help with regex function

2004-07-31 Thread C.F. Scheidecker Antunes
Hello, In order to get the filenames from the output below I have tried the following: preg_match_all('/inflating:"(.*?)"/', $stdout, $matches); print_r($matches); return $matches[1]; But I only get empty arrays with it. I need to fix that so I can have the filenames stored on arrays and also ev