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 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
   Displaying page 1 of 1 pages; Items 1 to 1

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