Parsing file entries from Windows "dir" command

Q

How to write a regular expression to parse file entries from the output of Windows "dir" command?

Here is an example output of the "dir" command:?

✍: FYIcenter.com

A

Here is a regular expression to parse file entries from output of the "dir" command on Windows systems: with multiple lines modifier "m": Note that:

(\d{2}/\d{2}/\d{4}\s+\d{2}:\d{2}\s+[AP]M) - File timestamp
([\d,]+)                                  - File size
(.+)                                      - File name

Click the button to test this regular expression here online:

2013-02-01, 0👍, 0💬