Regular Expressions 101

Sponsors

Library entries

2
javascript

e164 format

e164 format
Submitted by anonymous - 8 years ago
2
pcre

donotbackup

finding directories w/ donotbackup
Submitted by anonymous - 8 years ago
2
pcre

IPv4

no description available
Submitted by Jorge C. - 8 years ago
2
pcre

Currency Amount

Format: x0.00 Valid: 13.37 4.20 1.00...
Submitted by anonymous - 7 years ago
2
pcre

PO Box Address Validation

no description available
Submitted by mrferos - 7 years ago
2
pcre

Extract Metadata

no description available
Submitted by kai_desu - 7 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