Hi Terrence I'm not sure If I asked the question right. I'm not looking to do a search and replace. I'm hoping to set a variable in the CSS, such as This is the color of all selected links in the navigation. Then, the css would just set that variable. All of the various rules would refer to the variable instead of the actual hexdec number.
How would the regular expression do that? Thanks Ted -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Terrence Wood Sent: Wednesday, September 28, 2005 1:07 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] css variables Drake, Ted C. said: > There was a recent spat of posts about using variables in CSS.[snip] > Ouch, my 4 rule css file now grows to 54,056 lines of rules re-writing > the #f60 code. Wouldn't it be lovely if I just had > {selectedlink} : #ffcfcf ? There's no point using a slegehammer to drive in a tack. I usually just use a regex: s/#f60/#ffcfcf/g Any decent editor should handle that in one form or the other. kind regards Terrence Wood. ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ****************************************************** ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************