Regular Expressions 101

Community Patterns

0

INI values

PCRE2 (PHP >=7.3)
not done yet
Submitted by anonymous - a year ago
0

Time in hh:mm:ss

PCRE (PHP <7.3)
19h32min16s
Submitted by anonymous - a year ago
0

Postfix

PCRE2 (PHP >=7.3)
Add DR to end of line
Submitted by anonymous - a year ago
0

C/F temp unit

PCRE2 (PHP >=7.3)
me
Submitted by anonymous - a year ago
0

belcorp

PCRE2 (PHP >=7.3)
test
Submitted by anonymous - a year ago

Access Log

1

Regular Expression
PCRE (PHP <7.3)

/
(?<src_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s\D{1,5}(?<date_time>[^ ]+)\s(?<GMT_offset>[^ ]+)\s(?<action>[^ ]+.+a=)(?<hash_url>[^ ]+)\s(?<protocol>[a-zA-Z]+)[^ ]+\s(?<code>\d{1,3})\s(?<octet>[^ ]+)\s(?<ratio>[^ ]+)\W(?<percent_comp>[^ ]+)\W(?<dst_url>[^ ]+)\s(?<user_agent>[^ ]+.+)
/

Description

Loading markdown...
Submitted by anonymous - 8 years ago