Skip to content

ninx_re can not match user that contains "-" #3

@ZhouLihua

Description

@ZhouLihua

eg, the
unix_re = r'^([-bcdlps])([-rwxXsStT]{1,9})\s+(\d+)\s+(\w+)\s+(\w+)\s+(\d+)\s+([A-Za-z]{3}\s+\d{1,2}\s+[:\d]{4,5})\s(.+)$'
can not match below entry.
drwxrwxr-x 4 ec2-user ec2-user 77 Sep 7 05:50 data

The below unix-re can match the entry
unix_re = r'([-bcdlps])([-rwxXsStT]{1,9})\s+(\d+)\s+([\w-]+)\s+([\w-]+)\s+(\d+)\s+([A-Za-z]{3}\s+\d{1,2}\s+[:\d]{4,5})\s(.+)$'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions