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
Caculator seperator with groups
Open Workspace
PCRE2 (PHP)
Match
Created 2026-01-08 19:18
1
Regular Expression
/
(?<Number>
\d
+
(
[
.,
]
\d
+
)?
)
|
(?<Variable>
[
a
-
z
]
)
|
(?<Plus>
\+
)
|
(?<Minus>
-
)
|
(?<Multiply>
\*
)
|
(?<Divide>
\/
)
|
(?<Power>
\^
)
|
(?<LParen>
\(
)
|
(?<RParen>
\)
)
|
(?<Whitespace>
\s
+
)
|
(?<Error>
.
)
/
gm
Description
Caculator seperator with groups
Submitted by
CalcMan