Regular Expressions 101

Library entries

sudo transform

Vote

0

Regular Expression
python

"
(sudo)(?:\[\d+\])?\:\s+(?:\[[^]]+]\s+)?(\S+)\s*\:\s*TTY=([^ ;]+)\s*;\s*PWD=([^ ;]+)\s*;\s*USER=([^ ;]+)\s*;\s*COMMAND=([^\"]+)
"
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago