Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?<property>[\w-]+[^:]): | (?<HEX_COLOR>#[0-9a-f]{3,8})
/
gmud

Description

capture property and value which have color attribute in it

Submitted by Keshav - 2 years ago