RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Color Hex
Expression
^#(\d{6})|^#([A-F]{6})|^#([A-F]|[0-9]){6}
Description
Hexadecimal color values to validate the system must begin with a # symbol, which can be combination of numbers and letters AF, but the letters must be uppercase.
Matches
#000000|#FFFFFF|#000FFF|#FFF000|#A1B2C3
Non-Matches
#ffffff|#ABC|#123|#AJKSDD|#a1b2c3|abcdef|123456
Author Rating: The rating for this expression. Netken
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials