sudothe literal text sudo (case sensitive) Non-Capturing Group(?:\[\d+\])? ?repeats the group contents below at most once:
\[the literal [ (9110 / 1338 / 5B16)
\d+a Unicode decimal digit, repeated at least once
\]the literal ] (9310 / 1358 / 5D16)
\:the literal : (5810 / 728 / 3A16)
\s+a Unicode whitespace character, repeated at least once
Non-Capturing Group(?:\[[^]]+]\s+)? ?repeats the group contents below at most once:
\[the literal [ (9110 / 1338 / 5B16)
Negated Character Class[^]]+ +matches at least one character outside the set below:
]the literal ] (9310 / 1358 / 5D16)
]the literal ] (9310 / 1358 / 5D16)
\s+a Unicode whitespace character, repeated at least once
\S+any character that is not Unicode whitespace, repeated at least once
\s*a Unicode whitespace character, repeated any number of times
\:the literal : (5810 / 728 / 3A16)
\s*a Unicode whitespace character, repeated any number of times
TTY=the literal text TTY= (case sensitive) Negated Character Class[^ ;]+ +matches at least one character outside the set below:
the literal (3210 / 408 / 2016)
;the literal ; (5910 / 738 / 3B16)
\s*a Unicode whitespace character, repeated any number of times
;the literal ; (5910 / 738 / 3B16)
\s*a Unicode whitespace character, repeated any number of times
PWD=the literal text PWD= (case sensitive) Negated Character Class[^ ;]+ +matches at least one character outside the set below:
the literal (3210 / 408 / 2016)
;the literal ; (5910 / 738 / 3B16)
\s*a Unicode whitespace character, repeated any number of times
;the literal ; (5910 / 738 / 3B16)
\s*a Unicode whitespace character, repeated any number of times
USER=the literal text USER= (case sensitive) Negated Character Class[^ ;]+ +matches at least one character outside the set below:
the literal (3210 / 408 / 2016)
;the literal ; (5910 / 738 / 3B16)
\s*a Unicode whitespace character, repeated any number of times
;the literal ; (5910 / 738 / 3B16)
\s*a Unicode whitespace character, repeated any number of times
COMMAND=the literal text COMMAND= (case sensitive) Negated Character Class[^\"]+ +matches at least one character outside the set below:
\"the literal " (3410 / 428 / 2216)
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string