The FTP LIST command displays a listing of all the files and directories in the current working directory. The problem is, it returns several different formats depending on
Here's the one that I've been using for a FileZilla server:
^(?[\-ld])(?([\-r][\-w][\-xs]){3})\s+(?\d+)\s+(?\w+)\s+(?\w+)\s+(?\d+)\s+(?((?\w{3})\s+(?\d{2})\s+(?\d{1,2}):(?\d{2}))|((?\w{3})\s+(?\d{1,2})\s+(?\d{4})))\s+(?.+)$
http://chrishaas.wordpress.com/2009/06/10/regex-for-parsing-ftp-list-command/