#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    Regex & css - strip certain css styles


    i want to strip any css that begins '.ie6 '. what regex pattern would do this?

    for example strip the second declaration below:

    #container{
    ...
    }

    .ie6 #container{
    ...
    }

    any explanations of the steps would be appreciated.

    thanks
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,247
    Rep Power
    9400
    Tip: CSS selectors come after nothing (beginning of the file), a closing } and maybe some whitespace, or a comma.

IMN logo majestic logo threadwatch logo seochat tools logo