Regular Expressions 101

Community Patterns

0

TXN ID

PCRE2 (PHP >=7.3)
VIL ID
Submitted by anonymous - 10 months ago
0

partnkey value

Java 8
Extract value partn_key
Submitted by anonymous - 10 months ago
0

正则提取

PCRE2 (PHP >=7.3)
ss
Submitted by sss - 10 months ago
0

id

PCRE2 (PHP >=7.3)
getid
Submitted by anonymous - 10 months ago
0

id

PCRE2 (PHP >=7.3)
getid
Submitted by anonymous - 10 months ago
0

routes

PCRE2 (PHP >=7.3)
routes
Submitted by anonymous - 10 months ago
0

Identifier Regex

Java 8
Regex for identifiers
Submitted by anonymous - 10 months ago

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

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?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) - a year ago