正则提取文本中的颜色值 #xxxx,不严谨版本

不严谨但兼容性最好:

#[a-fA-F0-9]+

增加严谨性:

#[a-fA-F0-9]{1,6}

原文地址:https://www.cnblogs.com/xxxteam/p/3566134.html