Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?<sign>[\+\-]?)(?<hours>\d{2})\:?(?<minutes>\d{2})$
/
gm
Input 1
+01:00 -01:00 01:00 +0100 -0100 0100
Substitution
+01:00 -01:00 01:00 +0100 -0100 0100