Regular Expressions 101

Sponsors

Library entries

2
pcre

httplinkresolver

get special tag contains html link
Submitted by okeskiner - 6 years ago
2
pcre

URL extractor

Extract parts of an URL.
Submitted by Gilles Marchand - 6 years ago
2
pcre

multiple sql like expressions

no description available
Submitted by robessog - 6 years ago
2
pcre

Delete Blank Lines

no description available
Submitted by anonymous - 6 years ago
2
pcre

Email combo to username combo

no description available
Submitted by anonymous - 6 years ago
2
pcre

negative lookahead

no description available
Submitted by anonymous - 6 years ago
2
pcre

URL MATCH

URL MATCH
Submitted by activesatan - 6 years ago
2
python

.*(\d+).* Selects last number

no description available
Submitted by anonymous - 6 years ago

xferlog parser (proftpd, ftpd, vsftpd, etc..)

Vote

3

Regular Expression
pcre

/
(?<time>\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} \d{4}) (?<xferTime>\d*) (?<remoteHost>\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b) (?<fileSize>\d*) (?<fileName>\S*) (?<transferType>[a|b]) (?<specialActionFlag>\S{1}) (?<direction>\S{1}) (?<accessMode>\S{1}) (?<userName>\S*) (?<serviceName>\S*) (?<authenticationMethod>\S*) (?<authenticatedUserId>\S*) (?<completionStatus>\S*)
/
g

Description

Loading markdown...
Submitted by Robin Kearney - 8 years ago