Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(^#[0-9A-Fa-f]{6}$)|(^#[0-9A-Fa-f]{3,4}$)|(^#[0-9A-Fa-f]{8}$)
/
gm

Description

android中色值匹配正则表达式 #ff123456 #ffffff #123 #1234

Submitted by wangmeng - 3 years ago