Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(\d+)d|\s+|(\d+)h|\s+|(\d+)m
/
gi

Description

Duration string in dhm format. Supported Values 20d 8h 30m 20d 8h 30m 20d 8h 8h 30m 20d 30m

Submitted by nehakadam - 9 years ago