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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find UNIX ls -l
Expression
^([A-Za-z\-]+)\s+(\w+)\s+([A-Za-z0-9_\-\.]+)\s+([A-Za-z0-9_\-\.]+)\s+(\d+)\s+(.{3} [0-9 ]{2} ([0-9][0-9]:[0-9][0-9]| [0-9]{4}))\s+(.+)$
Description
GLOB the output of an "ls -l" command to extract specific details. It takes into account issues with older files/directories having a year in place of an hour:minute entry.
Matches
drwxr-xr-x 5 user dba 1024 Sep 24 21:24 dirname
Non-Matches
drwxr-xr-x 5 user dba 1024 Sep 24_21:24 dirname
Author Rating: Not yet rated. Donald Kemper
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-2024, RegexAdvice.com | ASP.NET Tutorials