-
Hi, I'd like to know if someone has already done this. Snippet of the config [amp_ssh]
enable=true
#regex=.*sshd:[ a-zA-Z0-9]+@.*
regex=.*sshd:.*
refresh=30 Python console >>> import re
>>> print (re.findall('sshd:[ a-zA-Z0-9]+@','0:00 sshd: g4zz0l1@pts/17'))
['sshd: g4zz0l1@']
>>> print (re.search('sshd:[ a-zA-Z0-9]+@','0:00 sshd: g4zz0l1@pts/17'))
<re.Match object; span=(5, 19), match='sshd: g4zz0l1@'> Example of a
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It works on my side: Example:
Result: Perhaps the problem cames from the ':' character ? |
Beta Was this translation helpful? Give feedback.
-
Just publish a patch on the develop branch. Can you test it @G4Zz0L1 ? |
Beta Was this translation helpful? Give feedback.
Just publish a patch on the develop branch.
Can you test it @G4Zz0L1 ?
See #2152
Commit: 1aa5596