I'm struggling a couple of hours already. I can't do regex and never could.
I need to capture the file name, size, type, user, group, access, modified and created with preg_match (PHP) for later usage.
I know it's simple. I just can't do it. Any help will be appreciated.
Here's a screenshot of what I need to have captured (highlighted)
And an example string:
File: '/home/user/file.php'
Size: 23283 Blocks: 48 IO Block: 4096 regular file
Device: 801h/2049d Inode: 967703 Links: 1
Access: (0600/-rw-------) Uid: ( 1002/user) Gid: ( 1003/user)
Access: 2022-06-06 07:12:31.298324852 -0400
Modify: 2022-06-02 07:54:24.493383727 -0400
Change: 2022-06-02 07:54:43.548316545 -0400
Birth: 2022-06-02 07:12:31.298324852 -0400
P.S. Yes I WILL take care of my regex lacking knowledge. I'm ashamed of this. Just it's not the time right now.