Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?<operator>[+\-])?(?:(?<dice>(?<numberOfDice>[\d]+)?[dD](?<faces>[\d]+)(?<explode>![\d]*)?(?<implode>ยก[\d]*)?(?<selective>[kd][\d]+)?)|(?<constant>[\d]+))
/
gm

Description

Map operator, constants, number of dice, number of faces, exploding/imploding and selective dice notations

Submitted by anonymous - 5 years ago