Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Time Hint
Open Workspace
PCRE2 (PHP)
Match
Created 2022-09-09 19:36
0
Regular Expression
/
\b
(
(
to
|
mon
|
tues
|
wed
(
nes
)?
|
thur
(
s
)?
|
fri
|
sat
(
ur
)?
|
sun
)(
day
)?
)?
|\d
(
\d
?
)(
:
\d\d
)?(
p
|
a
)
m
/
gm
Description
Regex for detecting common date/time formats.
Submitted by
Gyen