Regular Expressions 101

Sponsors

Library entries

0
javascript

rwd

rwd
Submitted by anonymous - 9 hours ago
0
javascript

Cbre bookingid

a
Submitted by anonymous - 13 hours ago
0
pcre

get arrays from Json

get arrays from Json
Submitted by fawaz - a day ago
0
pcre2

Match CamelCase

Matches PascalCase or CamelCase
Submitted by anonymous - 2 days ago
0
pcre2

nr_classe

separação de um código numérico simples
Submitted by anonymous - 2 days ago
0
python

month with year extraction

ready code
Submitted by anonymous - 2 days ago
0
pcre2

General regular expressions

General
Submitted by Stavros - 2 days ago
0
pcre2

Database_Data_Type

DatabaseDataType
Submitted by anonymous - 2 days 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 - 7 years ago