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
divide a dice roll string into the number of dice, the dices sides and a constant
Open Workspace
Python
Match
Created 2017-03-27 19:29
0
Regular Expression
r"
(?P<num_dice>
\d
+
)
[
dwDW
]
(?P<die_size>
\d
+
)(?P<modifier>
[
\+\-
]
\d
+
)?
"
g
Description
No description provided.
Submitted by
Anonymous