RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details FTP: Easily Parsed LIST Format (EPLF)
Expression
^\+(((i(?'id'.*?))|(m(?'modified'\d+))|(?'retr'r)|(s(?'size'\d+))|(?'cwd'\/)|(up(?'up'\d{3}))),)*\t(?'name'.*?)$
Description
This is a regular expression for parsing the Easily Parsed LIST Format (EPLF) for the FTP protocol's LIST command. It is based on the description of the format by D. J. Bernstein on http://cr.yp.to/ftp/list/eplf.html ... Remember to set Explicit Capture and Multiline options for this expression. The regex captures the following groups: "id": unique identifier for file/directory, "modified": when the file was last modified, specified in number of seconds, real time, since the UNIX epoch at the beginning of 1970 GMT, "retr": if not empty, a RETR command can be performed on this file, "size": size of file in bytes, "cwd": if not empty, a CWD command can be performed on this directory, "up": if specified, the client may use SITE CHMOD command to change the UNIX permission bits of this file (current permission bits are captured in this group), "name": The name of the file/directory
Matches
+i8388621.48598,m824253270,r,s612, 514.html
Non-Matches
-rw-r--r-- 1 owner group 213 Aug 26 16:31 README
Author Rating: Not yet rated. Mikkel Jakobsen
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials