如何修改此正则表达式以从 ls -a 输出中获取文件名?

How can I modify this regular expression to grab the filename from ls -a output?

假设我已经有了 'ls -la' 命令的输出,我现在只想解析文件名。到目前为止,我已经找到了这个正则表达式,但是我该如何修改它以说明文件名本身存在空格?

示例 'ls -la' 输出:

-rw-r--r--   1 admin  staff  460340057 May  4 14:19 test_large_file.xml

我目前拥有的正则表达式:

\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+(\S+)

您可以使用类似的东西:

/^.*\d\s+(.*?)$/m

https://regex101.com/r/mR4rH1/1