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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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