Hexadecimal Value

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

Matches any hex value (0123456789ABCDEF) preceded by the pound sign (#) of exactly 3 or 6 digits in length.

Copy this code and paste it in your HTML
  1. /(#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})\b)/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.