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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(#){1}([a-fA-F0-9]){6}$
Description
Matches HTML Color strings. Like #FFFFFF is white and #000000 is black and #FF0000 is red and so on...
Matches
#FFFFFF | #FF3421 | #00FF00
Non-Matches
232323 | f#fddee | #fd2
Author Rating: Not yet rated. Mladen Mihajlovic
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: well...
Name: pascal
Date: 2/17/2005 3:30:34 PM
Comment:
#fd2 is a valid Color value!


Title: overweight?
Name: Jakub Skopal
Date: 8/28/2003 8:41:13 AM
Comment:
maybe, ^#[a-fA-F0-9]{6}$ would be quite enough.


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