Regular Expressions 101

Community Patterns

Ghasedak RECEIVE SMS Packet HTTP

1

Regular Expression
PCRE (PHP <7.3)

/
POST \/tocken_(?'tocken'[a-z|A-Z|0-9]{116}) HTTP\/[1]\.[1][\n]+Content-Type: application\/x-www-form-urlencoded[\n]+Host: (?'Ip_Server'[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:[0-9]{1,5})[\n]+Content-Length: (?'ContentLength'[0-9]{1,5})[\n]+.*[\n]+.*[\n]+from=(?'From'[0-9]{10,13})&to=(?'To'[0-9]{6,15})&message=(?'Message'[\s\S\w\S]*)&messageid=(?'MessageID'[0-9]{8,12})
/
gm

Description

no description available

Submitted by anonymous - 4 years ago