Regular Expressions 101

Sponsors

Library entries

0
pcre2

Semver regex

Example of regex for semver with pre-releases
Submitted by anonymous - a day ago
0
pcre2

Números reales

Números reales
Submitted by Carlos Osmar - a day ago
0
pcre2

Validación de fecha

Este código validará la fecha
Submitted by Carlos Osmar - 2 days ago
0
pcre2

Doble Espacio

Encuentra texto con toble espacio
Submitted by Carlos Osmar - 2 days ago
0
pcre

Negative search

Seach pattern that doesn't match
Submitted by Gael Langlais - 3 days ago
0
java

date dd.mm.yyyy

Date format dd.mm.yyyy
Submitted by anonymous - 3 days ago
0
pcre2

Invoice nr

regexp search in mongo db by nr
Submitted by Tivadar - 3 days ago
0
pcre2

MySQL DATETIME

MySQL DATETIME
Submitted by anonymous - 4 days ago
0
pcre2

Split Http(s) Response

Split Http(s) Response
Submitted by anonymous - 5 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) - 3 months ago