Regular Expressions 101

Sponsors

Library entries

0
python

Test molecule coverage

Regex to test covered tests
Submitted by Florian Toulemont - 14 days ago
0
pcre2

Include non-whitespace

Prevents whitespace only string
Submitted by anonymous - 15 days ago
0
python

US Stock Exchange symbols

Regex for Telegram Bot
Submitted by Lucas Zurverra - 15 days ago
0
pcre2

reset1

reset1
Submitted by anonymous - 15 days ago
0
pcre2

reset

reset
Submitted by anonymous - 15 days ago
0
pcre2

reset capture

reset capture
Submitted by anonymous - 15 days ago
0
pcre2

conditional

conditional
Submitted by anonymous - 15 days ago
0
pcre2

datetime?

Attempt at datetime parsing
Submitted by anonymous - 16 days ago
0
pcre2

4 Digits 3 Decimals

4 Digits 3 Decimals
Submitted by anonymous - 16 days ago
0
pcre2

enum fields to enum mapping

.
Submitted by DenKu1 - 17 days ago
0
dotnet

Enum map to test cases

.
Submitted by DenKu1 - 17 days ago

AEM access.log - field extraction for SPLUNK

Vote

0

Regular Expression
pcre2

/
^(?<aem_access_remote_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s(?<aem_access_domain>\S+)\s(?<aem_access_user>\S+)\s(?<aem_access_date>\S[^:]+):(?<aem_access_bytes_out>\S+)\s(?<aem_access_GMT_offset>[^ ]+)\s"(?<aem_access_request_method>[^ ]+)\s(?<aem_access_request_path>[^ ]+)\s(?<aem_access_request_protocol>[^ ]+)"\s(?<aem_access_status_code>[^ ]+)\s(?<aem_access_request_duration>[^ ]+)\s"(?<aem_access_referrer>[^ ]+)"\s"(?<aem_access_user_agent>.*)"
/
gm

Description

Loading markdown...
Submitted by Robert Wunsch (wunsch@adobe.com) - 2 months ago