Hexadecimal color regex match


/ Published in: Regular Expression
Save to your folder(s)

Regex code to match hexadecimal colors


Copy this code and paste it in your HTML
  1. \#([a-fA-F]|[0-9]){3, 6}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.