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*ping|pong*\s*"\s*
/
gm

Description

Carry a payload which is either ping or pong

Submitted by anonymous - 3 years ago