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

it2026-03-31  9

不严谨但兼容性最好:

#[a-fA-F0-9]+

增加严谨性:

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

转载于:https://www.cnblogs.com/xxxteam/p/3566134.html

最新回复(0)