On 2/8/06, Julian Voelcker <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry that this is off topic but thought it would probably be the best > place to ask... > > I'm writing a parser that reads in a stylesheet and then lists all > assosciated files that are referenced within the stylesheet, e.g. > images, sound files, etc - NOT imported CSS files for the time being. > > Would any of you be willing to help me put together a list of the > different ways these external files can be referenced so I can build up > a filter/regex to list them? > > For example: > > background-image: url(/images/background.gif); > > Are they all preceded by the the word url and put in brackets?
I believe you can safely assume that every URL appears within "url()" See http://www.w3.org/TR/REC-CSS2/syndata.html#uri for more information on URLs within CSS. - Rowan -- Morality is usually taught by the immoral. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
