Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\s(\((?<year>\d{4})_(?<month>\d{2})_(?<day>\d{1,2}) (?<hour>\d{2})_(?<minute>\d{2})_(?<second>\d{2}) (UTC)\))
/
g

Description

YEAR_MONTH_DAY HOUR_MINUTE_SECOND (UTC)

Submitted by Kmna - 9 years ago