Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
\b#[a-f0-9]{6}\b
/
gmi

Description

Checks if a string contains a hex code

Submitted by anonymous - 3 years ago