Regular Expressions 101

Community Patterns

Working days

0

Regular Expression
PCRE2 (PHP >=7.3)

/
((?![\s\-обед])[а-я]{2,3}|[а-я]{2,3}-[а-я]{2,3})[:\s]+([\d:\-]+)
/
gm

Description

Parses working days, extracting from them only the days of the week and hours of work.

Only Cyrillic is supported.

Submitted by anonymous - a year ago