Regular Expressions 101

Sponsors

Library entries

0
javascript

isUrl updated regex

Latest isUrl regex
Submitted by anonymous - 5 years ago
0
javascript

Linux Updates

no description available
Submitted by anonymous - 5 years ago
0
javascript

SFMC Fields

no description available
Submitted by anonymous - 5 years ago
0
python

Timestamp

no description available
Submitted by anonymous - 5 years ago
0
javascript

Replace bad comments

no description available
Submitted by anonymous - 5 years ago
0
javascript

匹配图片title src

no description available
Submitted by anonymous - 5 years ago
0
javascript

Extract from on-pageText

no description available
Submitted by anonymous - 5 years ago

SSHD log analysis

Vote

0

Regular Expression
python

"
\[(?P<ssh_id>\d{1,}(?=\])).*(?P<action>(Accepted)|(Failed)).+(?P<username>(?<=(for\s)).+(?=\sfrom)).+(?P<host>(?<=(from\s)).+(?=\sport)).+(?P<port>(?<=(port\s))\d{1,})
"
g

Description

Loading markdown...
Submitted by Xerath Ahbrosha - 6 years ago