Regular Expressions 101

Community Patterns

demo[9:45-11/26/2020]

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 - 3 years ago