Regular Expressions 101

Community Patterns

Parse raw http request line

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(POST|CONNECT|GET)\s(.*)\s(HTTP.*)
/
gm

Description

Parse raw http request line

Submitted by Dimas Lanjaka - 3 months ago