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
/
roll (\d+)d(\d+)([\+-]\d+)?$
/
ig
Input 1
1
New
roll 1d10 roll 1d100 roll 1d20 roll 1d1234 roll 1d20+1 roll 1d20-1 roll 1d20*1 roll 1d20a1
Extraction
roll 1d10 roll 1d100 roll 1d20 roll 1d1234 roll 1d20+1 roll 1d20-1 roll 1d20*1 roll 1d20a1