Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
from:\s*"+\s*[a-zA-Z]*+\s*"\s*,\s*to:\s*"\s*[a-zA-Z]*\s*"\s*,\s*content:\s*"\s*[a-zA-Z]*\s*"\s*
/
gm

Description

strings represent messages in the form: from: "Sender", to: "Receiver", content: "Payload"

Submitted by anonymous - 3 years ago