Forum Moderators: open

Message Too Old, No Replies

Getting CSS Settings into ASP

A way through RegEx maybe?

         

digitalv

1:47 pm on Jul 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is probably more of a regular expressions question, if someone has some code for this please let me know. Basically what I need to do is get the CSS background color into a string.

I can load the CSS file into a string using FileSystemObject, but I'm not quite sure how to parse it to get the background color out of the body{} area. The CSS files being edited could vary so there isn't any way to do it by number of spaces or line number or anything like that. So I would need to load everything between the word body and } and then within that block of text find the "background:" portion and take the HTML color code after it.

This is over my head though, anyone have any ideas?

makeupalley

7:26 am on Jul 15, 2007 (gmt 0)

10+ Year Member



Try this:

[xstandard.com...]

hope this helps

em