|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2001-12-27 13:01 UTC] mfischer@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
I try to build an expression to get the File Name from a string given by ftp_rawlist() $pFile="-rwxrwxrwx 1 owner group 35087 Aug 13 1999 Copy of fupgrade.asf"; ereg("^.+ ([0-9]) .+ ([0-9]+) (.+) ([0-9][0-9]) ([0-9][0-9](:*)[0-9][0-9]) (.+)$",$pFile, $regs); this expression doesn't return match i try this one: ereg("^.+ ([0-9]) .+ ([0-9]+) (.+) ([0-9][0-9]) ([0-9]+) (.+)$",$pFile, $regs); but doesn't work too the first expression works on these string: "-rwxrwxrwx 1 owner group 3163 Dec 27 14:18 Read me & me.txt" "drwxrwxrwx 1 owner group 0 Dec 27 14:06 test2" but if i replace the hour by the year (as do ftp_rawlist()) that not work even with the second expression