Regular Expressions 101

Sponsors

Library entries

0
pcre2

Semver regex

Example of regex for semver with pre-releases
Submitted by anonymous - 5 hours ago
0
pcre2

Números reales

Números reales
Submitted by Carlos Osmar - 15 hours ago
0
pcre2

Validación de fecha

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

Doble Espacio

Encuentra texto con toble espacio
Submitted by Carlos Osmar - a day ago
0
pcre2

Invoice nr

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

MySQL DATETIME

MySQL DATETIME
Submitted by anonymous - 3 days ago
0
pcre2

Split Http(s) Response

Split Http(s) Response
Submitted by anonymous - 4 days ago
0
pcre2

Vivaldi

Vivaldi
Submitted by anonymous - 5 days ago

AEM - Author & Publisher - error.log - RegEx for SPLUNK fields

Vote

0

Regular Expression
pcre2

/
(?P<error_date>^[\w\/\.]+)\s+(?P<error_time>[\w\/\.\:]+)\s+\*(?P<error_level>\w+)\*\s+\[((?P<error_ip>[\d\.]+)\s+\[(?P<error_thread_id>.+)\]\s+(?P<error_request_method>\w+)\s+(?P<error_urlpath>.+)\s+(?P<error_req_protocol>.+)|(?P<error_thread>.+?))\]\s+(?P<error_message>.+[\n]?.+)
/
gm

Description

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