Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$
/

Description

有时需要抽取网页中的颜色代码,可以使用下面的表达式。

Submitted by anonymous - 7 years ago