Regular Expressions 101

Community Patterns

/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2}) (\w+)/g

1

Regular Expression
PCRE (PHP <7.3)

/
(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2}) (\w+)
/
g

Description

Gets year month date hour minute seconds and time zone value

yyyy-mm-dd hh:mm:ss UTC

$1 $2 $3 $4 $5 $6 $7

Submitted by hiren raj - 8 years ago