Regular Expressions 101

Library entries

2
pcre

find numeric groups in strings

no description available
Submitted by Vovan - 9 years ago
1
pcre

Grab {\w+?} together

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

Li match

no description available
Submitted by anonymous - 9 years ago
0
pcre

regex test

testing the string abc xyx 12 13 a a b
Submitted by Alien Coders - 9 years ago
0
pcre

Share?

Test
Submitted by test - 9 years ago
2
pcre

Regex Capture String

Capture out Parts using regular expressions
Submitted by Brandon - 9 years ago
0
pcre

asdfs

sfsdadf
Submitted by poter - 9 years ago
-2
pcre

1

no description available
Submitted by anonymous - 9 years ago
17
pcre

Email validation

no description available
Submitted by tutsplus.com - 9 years ago
0
pcre

Match all html tags

no description available
Submitted by Kostas Trichas - 9 years ago
1
pcre

Get all HTML tag names

no description available
Submitted by Kostas Trichas - 9 years ago
1
pcre

Parse JSON key value

no description available
Submitted by Kostas Trichas - 9 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 - 9 years ago