Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-01-24 16:17
Flavor·JavaScript

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

Description

capture property and value which have color attribute in it

Submitted by Keshav