Validate a web color?

classic Classic list List threaded Threaded
49 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Validate a web color?

Marc Pinnell-3
Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?

marc


--
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Viaduct Productions
You could keep an array of valid colours.  Then do a find.


On 2010-03-02, at 1:56 PM, Marc Pinnell wrote:

> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?



_____________
Rich in Toronto


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Rick Draper
In reply to this post by Marc Pinnell-3
Hi Marc,

> Taking a user input web color (ie e21a22) trying to figure out a way
to validate that it is a true color. For that it could only contain 0-9
and A-F (or a-f). I am thinking some type of regex. Any suggestions?

Does it have to be a string, or could you not use a colour picker?
Jolle built one for us at one stage.


Very best regards,
 
 
Rick
---------------------------------------------------
 
Rick Draper
Cell: +1-(647) 502-0297
Toronto Line: +1-(647) 477-1643
Australian Head Office: +61-7-3380-4600
 
Ottawa Line: +1-(613)-686-6126
Calgary Line: +1-(403)-668-0886




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Marc Pinnell-3
In reply to this post by Viaduct Productions
Um, aren't there like 16 million possible combinations?


On Mar 2, 2010, at 10:57 AM, Viaduct Productions wrote:

> You could keep an array of valid colours.  Then do a find.
>
>
> On 2010-03-02, at 1:56 PM, Marc Pinnell wrote:
>
>> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>
>
>
> _____________
> Rich in Toronto
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

--
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Viaduct Productions

On 2010-03-02, at 2:00 PM, Marc Pinnell wrote:

> Um, aren't there like 16 million possible combinations?

WEB colours?  I don't think so.  

_____________
Rich in Toronto


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Rick Draper
In reply to this post by Marc Pinnell-3
 
> Um, aren't there like 16 million possible combinations?

Um, yes...

Lots of tools around - but this one is interesting
http://ficml.org/jemimap/style/color/wheel.html

Very best regards,

Rick

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Marc Pinnell-3
In reply to this post by Viaduct Productions
Ok, I think there are 54,264 combos.


On Mar 2, 2010, at 11:01 AM, Viaduct Productions wrote:

>
> On 2010-03-02, at 2:00 PM, Marc Pinnell wrote:
>
>> Um, aren't there like 16 million possible combinations?
>
> WEB colours?  I don't think so.  
>
> _____________
> Rich in Toronto
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

--
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Viaduct Productions
Not clear if you want web colours or not.  

On 2010-03-02, at 2:04 PM, Marc Pinnell wrote:

> Ok, I think there are 54,264 combos.



_____________
Rich in Toronto


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

jasonhuck
In reply to this post by Marc Pinnell-3
Looks reasonable:

http://www.mkyong.com/regular-expressions/how-to-validate-hex-color-code-with-regular-expression/

(1st hit on Google...)

- jason




On Tue, Mar 2, 2010 at 2:04 PM, Marc Pinnell
<[hidden email]> wrote:

> Ok, I think there are 54,264 combos.
>
>
> On Mar 2, 2010, at 11:01 AM, Viaduct Productions wrote:
>
>>
>> On 2010-03-02, at 2:00 PM, Marc Pinnell wrote:
>>
>>> Um, aren't there like 16 million possible combinations?
>>
>> WEB colours?  I don't think so.
>>
>> _____________
>> Rich in Toronto
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
> --
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Marc Pinnell-3
Perfect, or nearly so. I will figure out this for Lasso and then tagswap it!

Marc


On Mar 2, 2010, at 11:06 AM, Jason Huck wrote:

> Looks reasonable:
>
> http://www.mkyong.com/regular-expressions/how-to-validate-hex-color-code-with-regular-expression/
>
> (1st hit on Google...)
>
> - jason
>
>
>
>
> On Tue, Mar 2, 2010 at 2:04 PM, Marc Pinnell
> <[hidden email]> wrote:
>> Ok, I think there are 54,264 combos.
>>
>>
>> On Mar 2, 2010, at 11:01 AM, Viaduct Productions wrote:
>>
>>>
>>> On 2010-03-02, at 2:00 PM, Marc Pinnell wrote:
>>>
>>>> Um, aren't there like 16 million possible combinations?
>>>
>>> WEB colours?  I don't think so.
>>>
>>> _____________
>>> Rich in Toronto
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>
>> --
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>
> --
> tagSwap.net :: Open Source Lasso Code
> <http://tagSwap.net/>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

--
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Brian Loomis-3
In reply to this post by Marc Pinnell-3
So you're actually talking about hex color, not web color right?

On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:

> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>
> marc
>
>
> --
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

Brian Loomis
http://www.virtualrelations.us
(208) 639-2569 - 208 NEW BLOX
-- email checked daily --


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Brian Loomis-3
In reply to this post by Marc Pinnell-3
Probably where I would start with this is after the regex write something to convert it to RGB color, see if the three values are inclusive of 0 -255

On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:

> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>
> marc
>
>
> --
> Marc Pinnell
> 1027 Design
> PO Box 990872
> Redding, CA 96099-0872
> 530.941.4706
> fax: 866.232.5300
> www.1027Design.com
>
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

Brian Loomis
http://www.virtualrelations.us
(208) 639-2569 - 208 NEW BLOX
-- email checked daily --


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

jasonhuck
In reply to this post by Brian Loomis-3
Yeah, he meant any valid hex color, not one of the 216 "web-safe" colors.

- jason



On Tue, Mar 2, 2010 at 2:18 PM, Brian Loomis <[hidden email]> wrote:

> So you're actually talking about hex color, not web color right?
>
> On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:
>
>> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>>
>> marc
>>
>>
>> --
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
> Brian Loomis
> http://www.virtualrelations.us
> (208) 639-2569 - 208 NEW BLOX
> -- email checked daily --
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Marc Pinnell-3
In reply to this post by Brian Loomis-3
Sorry, yes

On Mar 2, 2010, at 11:18 AM, Brian Loomis wrote:

> So you're actually talking about hex color, not web color right?
>
> On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:
>
>> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>>
>> marc
>>
>>
>> --
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
> Brian Loomis
> http://www.virtualrelations.us
> (208) 639-2569 - 208 NEW BLOX
> -- email checked daily --
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

--
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Trevor Borgmeier
In reply to this post by jasonhuck


on 3/2/10 1:20 PM Jason Huck wrote:
> Yeah, he meant any valid hex color, not one of the 216 "web-safe" colors.
you've got to be careful out there on the internets ... the web can be a
colorful place.  :)

-Trevor

> - jason
>
>
>
> On Tue, Mar 2, 2010 at 2:18 PM, Brian Loomis <[hidden email]> wrote:
>  
>> So you're actually talking about hex color, not web color right?
>>
>> On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:
>>
>>    
>>> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>>>
>>> marc
>>>
>>>
>>> --
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>      
>> Brian Loomis
>> http://www.virtualrelations.us
>> (208) 639-2569 - 208 NEW BLOX
>> -- email checked daily --
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>>    
>
>
>
>  

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

list
In reply to this post by jasonhuck
Does anyone still take web-safe colors into account?

I mean this was back in the early 90s where monitors didn't have full color depth. At least I haven't encountered a display not capable of 24 bit colors for a very long time. Like 10 years.

I've tossed web-safe color considerations as something to think about in web design and have not met any objections.

HDB
Jolle

3 mar 2010 kl. 05.20 skrev Jason Huck:

> Yeah, he meant any valid hex color, not one of the 216 "web-safe" colors.
>
> - jason
>
>
>
> On Tue, Mar 2, 2010 at 2:18 PM, Brian Loomis <[hidden email]> wrote:
>> So you're actually talking about hex color, not web color right?
>>
>> On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:
>>
>>> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>>>
>>> marc
>>>
>>>
>>> --
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>
>> Brian Loomis
>> http://www.virtualrelations.us
>> (208) 639-2569 - 208 NEW BLOX
>> -- email checked daily --
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>
> --
> tagSwap.net :: Open Source Lasso Code
> <http://tagSwap.net/>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>
>
>



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

jasonhuck
I was looking at the global stats on TheCounter.com, which apparently
stopped publishing new stats about a year ago, and they listed the
percentage of people with 256-color displays at zero.

We certainly haven't given it much thought in many years.

- jason




On Tue, Mar 2, 2010 at 3:31 PM, Jolle Carlestam <[hidden email]> wrote:

> Does anyone still take web-safe colors into account?
>
> I mean this was back in the early 90s where monitors didn't have full color depth. At least I haven't encountered a display not capable of 24 bit colors for a very long time. Like 10 years.
>
> I've tossed web-safe color considerations as something to think about in web design and have not met any objections.
>
> HDB
> Jolle
>
> 3 mar 2010 kl. 05.20 skrev Jason Huck:
>
>> Yeah, he meant any valid hex color, not one of the 216 "web-safe" colors.
>>
>> - jason
>>
>>
>>
>> On Tue, Mar 2, 2010 at 2:18 PM, Brian Loomis <[hidden email]> wrote:
>>> So you're actually talking about hex color, not web color right?
>>>
>>> On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:
>>>
>>>> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>>>>
>>>> marc
>>>>
>>>>
>>>> --
>>>> Marc Pinnell
>>>> 1027 Design
>>>> PO Box 990872
>>>> Redding, CA 96099-0872
>>>> 530.941.4706
>>>> fax: 866.232.5300
>>>> www.1027Design.com
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>>
>>>>
>>>
>>> Brian Loomis
>>> http://www.virtualrelations.us
>>> (208) 639-2569 - 208 NEW BLOX
>>> -- email checked daily --
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>
>>
>>
>>
>> --
>> tagSwap.net :: Open Source Lasso Code
>> <http://tagSwap.net/>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>>
>>
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Jim Van Heule-3
In reply to this post by jasonhuck
http://reference.lassosoft.com/Reference.LassoApp?[String_IsHexdigit]

Jim Van Heule
Heunox Corporation
www.Heunox.com



On Mar 2, 2010, at 2:20 PM, Jason Huck wrote:

> Yeah, he meant any valid hex color, not one of the 216 "web-safe" colors.
>
> - jason
>
>
>
> On Tue, Mar 2, 2010 at 2:18 PM, Brian Loomis <[hidden email]> wrote:
>> So you're actually talking about hex color, not web color right?
>>
>> On Mar 2, 2010, at 11:56 AM, Marc Pinnell wrote:
>>
>>> Taking a user input web color (ie e21a22) trying to figure out a way to validate that it is a true color. For that it could only contain 0-9 and A-F (or a-f). I am thinking some type of regex. Any suggestions?
>>>
>>> marc
>>>
>>>
>>> --
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>
>> Brian Loomis
>> http://www.virtualrelations.us
>> (208) 639-2569 - 208 NEW BLOX
>> -- email checked daily --
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>
> --
> tagSwap.net :: Open Source Lasso Code
> <http://tagSwap.net/>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Ke Carlton-3
In reply to this post by list
Agreed, I disregard web safe colours in terms of design - although I
typically check the results on various machines.

On 2 March 2010 20:31, Jolle Carlestam <[hidden email]> wrote:
> Does anyone still take web-safe colors into account?
>
> I've tossed web-safe color considerations as something to think about in web design and have not met any objections.

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: Validate a web color?

Viaduct Productions
In reply to this post by list
It was more about dealing with the challenge, not about people's preference for colour.


On 2010-03-02, at 3:31 PM, Jolle Carlestam wrote:

> I've tossed web-safe color considerations as something to think about in web design and have not met any objections.



_____________
Rich in Toronto


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


123