Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:^\d{1,14}\s+([a-zA-Z0-9?!.,]{1,20})\s+([^\s]+))|^-{1,20}>
/
gm

Description

The regex matches the temps like '1 xxxxx .*'.

Submitted by anonymous - 4 years ago