Regular Expressions 101

Community Patterns

property and value capture

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 - a year ago