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
Parse DateTimes
Open Workspace
PCRE (Legacy)
Match
Created 2013-07-26 15:31
1
Regular Expression
/
(
.
*?
)
(
[
0
-
9
]
|
0
[
0
-
9
]
|
1
[
0
-
9
]
|
2
[
0
-
3
]
)
:
(
[
0
-
5
]
[
0
-
9
]
)
:
?
(
[
0
-
5
]
[
0
-
9
]
)?(
AM
|
PM
)?(
[
+-
]
\d
{4}
)?
/
Description
Will parse a DateTime and group the results. Probably pretty limited but it works for me.
Submitted by
martin