Regular Expressions 101

Sponsors

Library entries

1
pcre2

find img without alt

okok
Submitted by anonymous - a year ago
1
pcre2

One or more spaces

Find one or more spaces
Submitted by anonymous - a year ago
2
pcre2

US phone number

US phone number, try to catch as many as possible
Submitted by anonymous - a year ago
1
pcre2

aws-arn-parser

this helps in parsing aws arn's
Submitted by anonymous - a year ago
2
pcre2

object

Json Object
Submitted by anonymous - a year ago
1
pcre2

Gitlab - Commit message

Commit message for Gitlab's Push Rules
Submitted by anonymous - a year ago
1
pcre2

Gitlab - Branch name

Branch name for Gitlab's Push Rules
Submitted by anonymous - a year ago

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

Vote

0

Regular Expression
pcre2

/
(?P<request_date>^[\w\/\:]+)\s+(?P<request_offset>[\d\+]+)\s+\[(?P<request_id>.+)\]\s+(?P<request_inout>[\-\>\<]+)\s+((?P<request_method>[GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH]+)?\s+(?P<request_path>[^;][^;][a-zA-Z0-9\/\_\-\.\=\@\:\%\+\~\#\?\&\{\}\[\]\|]+)\s+(?P<request_protocol>.+)\s+|(?P<request_code>\d+)\s+(?P<request_filetype>.+)\s+(?P<request_duration>[\d\w]+)\s+)
/
gm

Description

Loading markdown...
Submitted by Robert Wunsch - a year ago