.someclass
{
background: white url(someimage.png) repeat-x top left;
}
.someclass2
{
background: white url ( someimage.png) repeat-x top left;
}
";
MatchCollection arr = Regex.Matches(css, @"(?<!url\s*\(.*)(\.[-]?[_a-zA-Z][_a-zA-Z0-9-]*|[^\0-\177]*\\[0-9a-f]{1,6}(\r\n[ \n\r\t\f])?|\\[^\n\r\f0-9a-f]*)");
string class1 = arr[0].Value;
string class2 = arr[1].Value;
Technorati Tags |
url [feed], png [feed], css [feed], regex [feed], attribute [feed], c# [feed], classname [feed], regular expression [feed] |
Related Wikipedia Documents |
Uniform Resource Locator - Wikipedia, Query string, PNG (disambiguation), Cascading Style Sheets, Comparison of layout engines (CSS), CSS Zen Garden, Attribute, C Sharp |
My Related Documents |
C#, .Net Framework: CSS C# Token Reader, C#, .Net Framework: Google Search: c# css parser, C#, .Net Framework: RE: Regex 101 Exercise S2 - Verify a string is a hex number |
Related Amazon Books |
Compressed Image File Formats: JPEG, PNG, GIF, XBM, BMP (ACM Press S.): View From Amazon UK/View From Amazon USA PNG: The Definitive Guide: View From Amazon UK/View From Amazon USA Web Designer's Guide to PNG, GIF, JPEG: View From Amazon UK/View From Amazon USA CSS Pocket Reference: View From Amazon UK/View From Amazon USA Professional CSS: Cascading Style Sheets for Web Design: View From Amazon UK/View From Amazon USA Regular Expression Pocket Reference: View From Amazon UK/View From Amazon USA Regular Expression Recipes: A Problem-Solution Approach: View From Amazon UK/View From Amazon USA Regular Expression Recipes for Windows Developers: a Problem-solution Approach: View From Amazon UK/View From Amazon USA |
Related Images From Flickr |
[[posterous-content:gIqkxozkegqnkrboHwoo]][[posterous-content:fFbzfthIoCtzosInvHca]][[posterous-content:annJwapDjijadfBcwizg]][[posterous-content:EAHCAGjzEbHycHgsIfxs]] |