Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
[\w\-]+\.[\w\-]+\.(?>phl1|aus2)
/
gm

Description

finds patterns like ..(phl1|aus2) in the log, trying to find all host names.

Submitted by anonymous - 4 years ago